diff options
author | mbuesch@freenet.de <mbuesch@freenet.de> | 2005-02-06 00:09:34 +0100 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 23:24:19 -0700 |
commit | 0786e8e541dcc0a82a57c96569519815c38962f3 (patch) | |
tree | bc297e92575539f3ba3b0c1d501712d48393e398 /udevd.c | |
parent | d9cf0b0a7c0b3549afe9cdcfc2d1d43a4bafe8a9 (diff) | |
download | systemd-0786e8e541dcc0a82a57c96569519815c38962f3.tar.gz |
[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
Diffstat (limited to 'udevd.c')
-rw-r--r-- | udevd.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |