Always initialise sa.sa_flags to 0.

This commit is contained in:
Adam Sampson 2020-06-20 17:55:35 +01:00
parent 413a995ad7
commit e242892ff2

View file

@ -174,6 +174,7 @@ bool CSignalUnix::setSignalHandled ( int sigNum, bool state )
else else
{ {
sa.sa_handler = SIG_DFL; sa.sa_handler = SIG_DFL;
sa.sa_flags = 0;
} }
return ::sigaction ( sigNum, &sa, nullptr ) == 0; return ::sigaction ( sigNum, &sa, nullptr ) == 0;