summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-06-03 16:20:39 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-06-03 16:20:39 +0000
commit9d478a6659b96a8538eced63153c2b979d72a29d (patch)
tree56b3d53c50626a9d0d26bc7fee20a4b2cfd53d84 /lib/libc
parente593fefba7a40df5e69e4a2f98a4a6641926e149 (diff)
zero sigaction before use
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/signal.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/gen/signal.c b/lib/libc/gen/signal.c
index 7a501d3748d..a6a2b8b8403 100644
--- a/lib/libc/gen/signal.c
+++ b/lib/libc/gen/signal.c
@@ -32,7 +32,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: signal.c,v 1.2 1996/08/19 08:26:09 tholo Exp $";
+static char rcsid[] = "$OpenBSD: signal.c,v 1.3 1998/06/03 16:20:22 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
/*
@@ -49,6 +49,7 @@ signal(s, a)
{
struct sigaction sa, osa;
+ memset(&sa, 0, sizeof sa);
sa.sa_handler = a;
sigemptyset(&sa.sa_mask);
sa.sa_flags = 0;