From dd62d856062b184bcf8ea8a050bfb00fee0a92e3 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Sat, 3 Sep 2011 09:43:50 -0400 Subject: e2fsck: fix valgrind commit in sigcatcher Thanks to Andreas Dilger for catching this. Signed-off-by: "Theodore Ts'o" --- e2fsck/sigcatcher.c | 1 + 1 file changed, 1 insertion(+) diff --git a/e2fsck/sigcatcher.c b/e2fsck/sigcatcher.c index 45571ca6..83f912de 100644 --- a/e2fsck/sigcatcher.c +++ b/e2fsck/sigcatcher.c @@ -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; -- cgit v1.2.3