diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-06-03 16:20:39 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-06-03 16:20:39 +0000 |
commit | 9d478a6659b96a8538eced63153c2b979d72a29d (patch) | |
tree | 56b3d53c50626a9d0d26bc7fee20a4b2cfd53d84 /lib/libss/list_rqs.c | |
parent | e593fefba7a40df5e69e4a2f98a4a6641926e149 (diff) |
zero sigaction before use
Diffstat (limited to 'lib/libss/list_rqs.c')
-rw-r--r-- | lib/libss/list_rqs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libss/list_rqs.c b/lib/libss/list_rqs.c index 34e8ae877a9..ae5e2c9147d 100644 --- a/lib/libss/list_rqs.c +++ b/lib/libss/list_rqs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: list_rqs.c,v 1.1 1996/11/15 09:25:29 downsj Exp $ */ +/* $OpenBSD: list_rqs.c,v 1.2 1998/06/03 16:20:27 deraadt Exp $ */ /*- * Copyright 1987, 1988 by the Student Information Processing Board @@ -66,6 +66,7 @@ ss_list_requests(argc, argv, sci_idx, info_ptr) sigaddset(&nmask, SIGINT); sigprocmask(SIG_BLOCK, &nmask, &omask); + memset(&nsig, 0, sizeof nsig); nsig.sa_handler = SIG_IGN; sigemptyset(&nsig.sa_mask); nsig.sa_flags = 0; |