Author: mjg
Date: Wed Jul  2 05:45:40 2014
New Revision: 268136
URL: http://svnweb.freebsd.org/changeset/base/268136

Log:
  Plug gcc warning after r268074 about unitialized newsigacts
  
  Reported by:  Gary Jennejohn <gljennjohn gmail.com>

Modified:
  head/sys/kern/kern_exec.c

Modified: head/sys/kern/kern_exec.c
==============================================================================
--- head/sys/kern/kern_exec.c   Wed Jul  2 05:09:41 2014        (r268135)
+++ head/sys/kern/kern_exec.c   Wed Jul  2 05:45:40 2014        (r268136)
@@ -623,8 +623,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)
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to