From: Vsevolod Stakhov Date: Fri, 17 May 2019 16:15:10 +0000 (+0100) Subject: [Minor] Fix setting structure's fields X-Git-Tag: 2.0~894 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=12fee52a2fc74660279413a208883fe71b705ca7;p=rspamd.git [Minor] Fix setting structure's fields --- diff --git a/src/libutil/expression.c b/src/libutil/expression.c index 71414dc66..6099a308f 100644 --- a/src/libutil/expression.c +++ b/src/libutil/expression.c @@ -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;