Plug gcc warning after r268074 about unitialized newsigacts

Reported by:	Gary Jennejohn <gljennjohn gmail.com>
This commit is contained in:
Mateusz Guzik 2014-07-02 05:45:40 +00:00
parent 9f932ecdb2
commit a6bad85e8e

View File

@ -623,8 +623,10 @@ do_execve(td, args, mac_p)
oldsigacts = p->p_sigacts;
newsigacts = sigacts_alloc();
sigacts_copy(newsigacts, oldsigacts);
} else
} else {
oldsigacts = NULL;
newsigacts = NULL; /* satisfy gcc */
}
PROC_LOCK(p);
if (oldsigacts)