From: Alan T. DeKok Date: Wed, 19 Oct 2011 15:43:28 +0000 (+0200) Subject: Initialize the structure X-Git-Tag: release_3_0_0_beta0~555 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9f86223e080db93da1d59b724d305301e8215cb;p=thirdparty%2Ffreeradius-server.git Initialize the structure --- diff --git a/src/main/util.c b/src/main/util.c index 1ec5eb62364..9c27bad8c5c 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;