[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
This commit is contained in:
mbuesch@freenet.de 2005-02-06 00:09:34 +01:00 committed by Greg KH
parent d9cf0b0a7c
commit 0786e8e541

View file

@ -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;