From 99368be5028bdd9b799bf082e93e46d97946f70c Mon Sep 17 00:00:00 2001 From: jdp Date: Wed, 6 Jun 2001 21:08:15 +0000 Subject: 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(+) (limited to 'usr.sbin/yppush') diff --git a/usr.sbin/yppush/yppush_main.c b/usr.sbin/yppush/yppush_main.c index ba25dda..3e693aa 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); -- cgit v1.1