From b4c01e46d990ac226cb519e004e9766c8f9f845e Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Wed, 3 Jun 1998 17:00:10 +0000 Subject: zero sigaction before use --- usr.sbin/screenblank/screenblank.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.sbin') 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; -- cgit v1.2.3