aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_map.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/lua_map.c')
-rw-r--r--src/lua/lua_map.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lua/lua_map.c b/src/lua/lua_map.c
index 1ed4aff7d..f4d3a6b88 100644
--- a/src/lua/lua_map.c
+++ b/src/lua/lua_map.c
@@ -356,8 +356,9 @@ lua_map_fin (struct map_cb_data *data)
lua_pop (cbdata->L, 1);
}
}
-
- cbdata->data = rspamd_fstring_assign (cbdata->data, "", 0);
+ else if (cbdata->data != NULL) {
+ cbdata->data = rspamd_fstring_assign (cbdata->data, "", 0);
+ }
}
gint