summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-06-03 08:11:52 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-06-03 08:11:52 +0000
commit367fd290a971c5e21a3d686c8ec40ec94f59569b (patch)
treeca7322977718dada17ad920738c4d6dc9349d91d /games
parentc77ca1758e4fd8b25543be679ad8e1e311cc09f4 (diff)
zero struct sigaction before use
Diffstat (limited to 'games')
-rw-r--r--games/atc/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/games/atc/main.c b/games/atc/main.c
index 32d5f8d341a..f0a38d46983 100644
--- a/games/atc/main.c
+++ b/games/atc/main.c
@@ -178,6 +178,7 @@ main(ac, av)
tty_new.c_cc[VTIME] = 0;
tcsetattr(fileno(stdin), TCSADRAIN, &tty_new);
+ memset(&sa, 0, sizeof sa);
sa.sa_handler = update;
sigemptyset(&sa.sa_mask);
sigaddset(&sa.sa_mask, SIGALRM);