From 12fee52a2fc74660279413a208883fe71b705ca7 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 17 May 2019 17:15:10 +0100 Subject: [PATCH] [Minor] Fix setting structure's fields --- src/libutil/expression.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.39.5