]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix setting structure's fields
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 17 May 2019 16:15:10 +0000 (17:15 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 17 May 2019 16:15:10 +0000 (17:15 +0100)
src/libutil/expression.c

index 71414dc66d8746f03b05b68c158577ec5e9d209e..6099a308f19f67da142c20a68e2888085c2a7188 100644 (file)
@@ -1124,6 +1124,7 @@ rspamd_process_expression_closure (struct rspamd_expression *expr,
 
        expr->evals ++;
 
+       memset (&pd, 0, sizeof (pd));
        pd.process_closure = cb;
        pd.flags = flags;
        pd.ud = runtime_ud;