Whamcloud - gitweb
e2fsck: fix valgrind commit in sigcatcher
authorTheodore Ts'o <tytso@mit.edu>
Sat, 3 Sep 2011 13:43:50 +0000 (09:43 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 3 Sep 2011 13:43:50 +0000 (09:43 -0400)
Thanks to Andreas Dilger for catching this.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/sigcatcher.c

index 45571ca..83f912d 100644 (file)
@@ -218,6 +218,7 @@ void sigcatcher_setup(void)
 {
        struct sigaction        sa;
        
+       memset(&sa, 0, sizeof(struct sigaction));
        sa.sa_sigaction = die_signal_handler;
        sa.sa_flags = SA_SIGINFO;