From a6bad85e8e7751a74e8fcd5b20aab2551307cd57 Mon Sep 17 00:00:00 2001 From: Mateusz Guzik Date: Wed, 2 Jul 2014 05:45:40 +0000 Subject: [PATCH] Plug gcc warning after r268074 about unitialized newsigacts Reported by: Gary Jennejohn --- sys/kern/kern_exec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index cce687b9da12..bc9af298809a 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -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)