mirror of
https://git.FreeBSD.org/src.git
synced 2025-02-08 07:03:12 +00:00
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
This commit is contained in:
parent
77a7881dac
commit
c95abc0ee8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=77838
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user