diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-24 14:50:04 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-24 14:50:04 +0100 |
commit | d142728c2eef62bf3266e9c16eb73a5a3ba63b46 (patch) | |
tree | 9a736dfc86086c3fc7d097dfd23f86dac70e24c6 /src | |
parent | 0b5f43d31ee401931d65e4627e0bcebab571be7c (diff) | |
download | rspamd-d142728c2eef62bf3266e9c16eb73a5a3ba63b46.tar.gz rspamd-d142728c2eef62bf3266e9c16eb73a5a3ba63b46.zip |
[Minor] Fill structure fields
Diffstat (limited to 'src')
-rw-r--r-- | src/lua/lua_task.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |