]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Clear struct before use 2428/head
authorMikhail Galanin <mgalanin@mimecast.com>
Fri, 17 Aug 2018 10:40:59 +0000 (11:40 +0100)
committerMikhail Galanin <mgalanin@mimecast.com>
Fri, 17 Aug 2018 10:40:59 +0000 (11:40 +0100)
src/libserver/worker_util.c

index cf51eff62edb0035ca7d9fa4c5c769d48f3e8662..f7bc7c971aa3885cac76a92c58a8aee9af2174bf 100644 (file)
@@ -1048,6 +1048,7 @@ rspamd_set_crash_handler (struct rspamd_main *rspamd_main)
 
 #ifdef HAVE_SIGALTSTACK
        stack_t ss;
+       memset (&ss, 0, sizeof ss);
 
        /* Allocate special stack, NOT freed at the end so far */
        ss.ss_size = MAX (SIGSTKSZ, 8192 * 4);