diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-06-03 08:11:52 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-06-03 08:11:52 +0000 |
commit | 367fd290a971c5e21a3d686c8ec40ec94f59569b (patch) | |
tree | ca7322977718dada17ad920738c4d6dc9349d91d /games/atc | |
parent | c77ca1758e4fd8b25543be679ad8e1e311cc09f4 (diff) |
zero struct sigaction before use
Diffstat (limited to 'games/atc')
-rw-r--r-- | games/atc/main.c | 1 |
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); |