diff options
author | Andrew Bartlett <abartlet@samba.org> | 2003-01-13 08:09:32 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2003-01-13 08:09:32 +0000 |
commit | f8d9880c5f5321f4dba6b42896419412284c3e7b (patch) | |
tree | 932497f79e366179318f29b0585964e2244c0f59 /source/smbd/notify_kernel.c | |
parent | 26660f939f0e0650d54631bf8243b22f32b64132 (diff) | |
download | samba-f8d9880c5f5321f4dba6b42896419412284c3e7b.tar.gz samba-f8d9880c5f5321f4dba6b42896419412284c3e7b.tar.xz samba-f8d9880c5f5321f4dba6b42896419412284c3e7b.zip |
Ensure we do not pass uninitialised data to the kernel. (Picked up by
valgrind).
Andrew Bartlett
Diffstat (limited to 'source/smbd/notify_kernel.c')
-rw-r--r-- | source/smbd/notify_kernel.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/smbd/notify_kernel.c b/source/smbd/notify_kernel.c index df553721ef7..8b7ff21ecb9 100644 --- a/source/smbd/notify_kernel.c +++ b/source/smbd/notify_kernel.c @@ -215,6 +215,8 @@ struct cnotify_fns *kernel_notify_init(void) static struct cnotify_fns cnotify; struct sigaction act; + ZERO_STRUCT(act); + act.sa_handler = NULL; act.sa_sigaction = signal_handler; act.sa_flags = SA_SIGINFO; |