From: greg@kroah.com Date: Fri, 3 Dec 2004 06:14:57 +0000 (-0800) Subject: [PATCH] fix spurious valgrind warning in udev. X-Git-Tag: 047~36 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa8666f77b1f605dced47a822a8b74b9c1326fed;p=systemd [PATCH] fix spurious valgrind warning in udev. --- diff --git a/udev.c b/udev.c index efeb1b50..e71cddd3 100644 --- a/udev.c +++ b/udev.c @@ -108,6 +108,7 @@ int main(int argc, char *argv[], char *envp[]) udev_init_config(); /* set signal handlers */ + memset(&act, 0x00, sizeof(act)); act.sa_handler = (void (*) (int))sig_handler; sigemptyset (&act.sa_mask); act.sa_flags = 0;