From d142728c2eef62bf3266e9c16eb73a5a3ba63b46 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 24 Sep 2019 14:50:04 +0100 Subject: [PATCH] [Minor] Fill structure fields --- src/lua/lua_task.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index 33d7b1cd8..d2d0c872a 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -2203,6 +2203,7 @@ lua_task_get_urls (lua_State * L) protocols_mask = default_mask; } + memset (&cb, 0, sizeof (cb)); cb.i = 1; cb.L = L; cb.mask = protocols_mask; @@ -2415,6 +2416,7 @@ lua_task_get_emails (lua_State * L) if (task) { if (task->message) { lua_createtable (L, g_hash_table_size (MESSAGE_FIELD (task, emails)), 0); + memset (&cb, 0, sizeof (cb)); cb.i = 1; cb.L = L; cb.mask = PROTOCOL_MAILTO; -- 2.39.5