svn commit: r270086 - stable/10/sys/kern

Mateusz Guzik mjg at FreeBSD.org
Sun Aug 17 06:56:23 UTC 2014


Author: mjg
Date: Sun Aug 17 06:56:22 2014
New Revision: 270086
URL: http://svnweb.freebsd.org/changeset/base/270086

Log:
  MFC r268136:
  
  Plug gcc warning after r268074 about unitialized newsigacts

Modified:
  stable/10/sys/kern/kern_exec.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/kern/kern_exec.c
==============================================================================
--- stable/10/sys/kern/kern_exec.c	Sun Aug 17 06:54:49 2014	(r270085)
+++ stable/10/sys/kern/kern_exec.c	Sun Aug 17 06:56:22 2014	(r270086)
@@ -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)


More information about the svn-src-all mailing list