sigaction was called with partially uninitialized data

This commit is contained in:
Pierre Pronchery 2006-11-01 20:03:07 +00:00
parent 939a7058e6
commit ff1bc1d2e4

View File

@ -47,6 +47,7 @@ static int _init_init(void)
{
struct sigaction sa;
memset(&sa, 0, sizeof(sa));
sa.sa_handler = _init_sighandler;
sigfillset(&sa.sa_mask);
if(sigaction(SIGCHLD, &sa, NULL) == -1