]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Quickly fix a valgrind error.
authorRoy Marples <roy@marples.name>
Wed, 20 Feb 2008 17:13:12 +0000 (17:13 +0000)
committerRoy Marples <roy@marples.name>
Wed, 20 Feb 2008 17:13:12 +0000 (17:13 +0000)
signal.c

index d37db63220026cd83ed4b37a329817217ef4b0ac..9055c9fe8df94bfda3eba9f6cc57a75bef47c39c 100644 (file)
--- 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) {