summaryrefslogtreecommitdiffstats
path: root/src/lua/lua_map.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-01-16 18:10:29 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-01-16 18:10:29 +0000
commit03eb1c0ac161ffe6243297429ddc664bf6bb4923 (patch)
tree6f14dc154f817faca9a30d5503af5c40b8f04106 /src/lua/lua_map.c
parent3c18512f40f2feefbb31bae27bce805784e6607f (diff)
downloadrspamd-03eb1c0ac161ffe6243297429ddc664bf6bb4923.tar.gz
rspamd-03eb1c0ac161ffe6243297429ddc664bf6bb4923.zip
[Fix] Fix lua maps load
Diffstat (limited to 'src/lua/lua_map.c')
-rw-r--r--src/lua/lua_map.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lua/lua_map.c b/src/lua/lua_map.c
index f4d3a6b88..1ed4aff7d 100644
--- a/src/lua/lua_map.c
+++ b/src/lua/lua_map.c
@@ -356,9 +356,8 @@ lua_map_fin (struct map_cb_data *data)
lua_pop (cbdata->L, 1);
}
}
- else if (cbdata->data != NULL) {
- cbdata->data = rspamd_fstring_assign (cbdata->data, "", 0);
- }
+
+ cbdata->data = rspamd_fstring_assign (cbdata->data, "", 0);
}
gint