summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authormjg <mjg@FreeBSD.org>2014-08-17 06:56:22 +0000
committermjg <mjg@FreeBSD.org>2014-08-17 06:56:22 +0000
commit98ac4e9b0867c3a743a97b5d7aae64d69be15973 (patch)
tree464e6a20763d9cc4af8cbc4e1693a4cd752fac6a /sys/kern
parent9cebe2439f977c8692f96fcac318dc4a09891ad4 (diff)
downloadFreeBSD-src-98ac4e9b0867c3a743a97b5d7aae64d69be15973.zip
FreeBSD-src-98ac4e9b0867c3a743a97b5d7aae64d69be15973.tar.gz
MFC r268136:
Plug gcc warning after r268074 about unitialized newsigacts
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_exec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c
index 0d4923f..354a4ee 100644
--- a/sys/kern/kern_exec.c
+++ b/sys/kern/kern_exec.c
@@ -626,8 +626,10 @@ interpret:
oldsigacts = p->p_sigacts;
newsigacts = sigacts_alloc();
sigacts_copy(newsigacts, oldsigacts);
- } else
+ } else {
oldsigacts = NULL;
+ newsigacts = NULL; /* satisfy gcc */
+ }
PROC_LOCK(p);
if (oldsigacts)
OpenPOWER on IntegriCloud