]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
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 45571ca68bf604e1e41a6ea4f0e36b359ce20968..83f912de09707a0d462c4592ecc38e9c793305c1 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;