summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2011-09-03 09:43:50 -0400
committerTheodore Ts'o <tytso@mit.edu>2011-09-03 09:43:50 -0400
commitdd62d856062b184bcf8ea8a050bfb00fee0a92e3 (patch)
tree7d5ca79adfde9665b2db5da7f228fd6594540d56
parent771e8db9f04da550ee7c0ca74b198e989ea4ff35 (diff)
downloade2fsprogs-dd62d856062b184bcf8ea8a050bfb00fee0a92e3.tar.gz
e2fsck: fix valgrind commit in sigcatcher
Thanks to Andreas Dilger for catching this. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
-rw-r--r--e2fsck/sigcatcher.c1
1 files changed, 1 insertions, 0 deletions
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;