diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-06-03 17:00:10 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-06-03 17:00:10 +0000 |
commit | b4c01e46d990ac226cb519e004e9766c8f9f845e (patch) | |
tree | d6e35db6687d93a5966095202f760e515c9887bd /usr.sbin | |
parent | 9d478a6659b96a8538eced63153c2b979d72a29d (diff) |
zero sigaction before use
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/screenblank/screenblank.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/screenblank/screenblank.c b/usr.sbin/screenblank/screenblank.c index b9f9cc91c9e..fdf633ce8bc 100644 --- a/usr.sbin/screenblank/screenblank.c +++ b/usr.sbin/screenblank/screenblank.c @@ -1,4 +1,4 @@ -/* $OpenBSD: screenblank.c,v 1.4 1998/06/03 08:04:01 deraadt Exp $ */ +/* $OpenBSD: screenblank.c,v 1.5 1998/06/03 17:00:09 deraadt Exp $ */ /* $NetBSD: screenblank.c,v 1.2 1996/02/28 01:18:34 thorpej Exp $ */ /*- @@ -158,6 +158,7 @@ main(argc, argv) * Make sure the framebuffer gets turned back on when we're * killed. */ + memset(&sa, 0, sizeof sa); sa.sa_handler = sighandler; sigemptyset(&sa.sa_mask); sa.sa_flags = SA_NOCLDSTOP; |