]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fill structure fields
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 24 Sep 2019 13:50:04 +0000 (14:50 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 24 Sep 2019 13:50:04 +0000 (14:50 +0100)
src/lua/lua_task.c

index 33d7b1cd807f10e1965ec07a3cc21ec99236134f..d2d0c872acc1b7a74aa74d63adaeed9a36f61c89 100644 (file)
@@ -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;