summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormbuesch@freenet.de <mbuesch@freenet.de>2005-02-06 00:09:34 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 23:24:19 -0700
commit0786e8e541dcc0a82a57c96569519815c38962f3 (patch)
treebc297e92575539f3ba3b0c1d501712d48393e398
parentd9cf0b0a7c0b3549afe9cdcfc2d1d43a4bafe8a9 (diff)
[PATCH] udevd: fix valgrind warning
==4304== Syscall param sigaction(act) contains uninitialised or unaddressable byte(s) ==4304== at 0x804A37B: (within /sbin/udevd) ==4304== Address 0x52BFE7FC is on thread 1's stack
-rw-r--r--udevd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/udevd.c b/udevd.c
index 53c7bf3df1..7d7fd63332 100644
--- a/udevd.c
+++ b/udevd.c
@@ -690,6 +690,7 @@ int main(int argc, char *argv[], char *envp[])
dbg("error fcntl on write pipe: %s", strerror(errno));
/* set signal handlers */
+ memset(&act, 0x00, sizeof(struct sigaction));
act.sa_handler = (void (*) (int))sig_handler;
sigemptyset(&act.sa_mask);
act.sa_flags = SA_RESTART;