From: Alan T. DeKok Date: Wed, 19 Oct 2011 15:43:28 +0000 (+0200) Subject: Initialize the structure X-Git-Tag: release_2_2_0~286 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bc7940f2ef52658e49d6db3a88d4b15c41546f0;p=thirdparty%2Ffreeradius-server.git Initialize the structure --- diff --git a/src/main/util.c b/src/main/util.c index 919e4d2ffaa..20e01eb9d0c 100644 --- a/src/main/util.c +++ b/src/main/util.c @@ -49,6 +49,7 @@ void (*reset_signal(int signo, void (*func)(int)))(int) #ifdef HAVE_SIGACTION struct sigaction act, oact; + memset(&act, 0, sizeof(act)); act.sa_handler = func; sigemptyset(&act.sa_mask); act.sa_flags = 0;