]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix lua maps load
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 16 Jan 2017 18:10:29 +0000 (18:10 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 16 Jan 2017 18:10:29 +0000 (18:10 +0000)
src/lua/lua_map.c

index f4d3a6b88025d744783ad3969b7cdc675fb7d675..1ed4aff7d02fdc458e96fefa9c31b887e58fc704 100644 (file)
@@ -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