From: Roy Marples Date: Wed, 20 Feb 2008 17:13:12 +0000 (+0000) Subject: Quickly fix a valgrind error. X-Git-Tag: v3.2.3~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e0e64a9d9096ea715218d464b5a6cd692e71571;p=thirdparty%2Fdhcpcd.git Quickly fix a valgrind error. --- diff --git a/signal.c b/signal.c index d37db632..9055c9fe 100644 --- a/signal.c +++ b/signal.c @@ -134,6 +134,7 @@ int signal_init (void) /* Ignore child signals and don't make zombies. * Because we do this, we don't need to be in signal_setup */ + memset (&sa, 0, sizeof (sa)); sa.sa_handler = SIG_DFL; sa.sa_flags = SA_NOCLDSTOP | SA_NOCLDWAIT; if (sigaction (SIGCHLD, &sa, NULL) == -1) {