From c95abc0ee82b09fa690889ca7d5d68f04881ee6e Mon Sep 17 00:00:00 2001 From: John Polstra Date: Wed, 6 Jun 2001 21:08:15 +0000 Subject: [PATCH] Initialize the sa_flags member of an auto struct sigaction variable. It contained whatever garbage happened to be on the stack. PR: bin/27457 (not confirmed yet, but almost certain) MFC after: 1 day --- usr.sbin/yppush/yppush_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/usr.sbin/yppush/yppush_main.c b/usr.sbin/yppush/yppush_main.c index ba25dda2a8d..3e693aaf814 100644 --- a/usr.sbin/yppush/yppush_main.c +++ b/usr.sbin/yppush/yppush_main.c @@ -651,6 +651,7 @@ main(argc,argv) sigaddset(&sa.sa_mask, SIGALRM); sigaddset(&sa.sa_mask, SIGINT); sa.sa_handler = async_handler; + sa.sa_flags = 0; sigaction(SIGIO, &sa, NULL);