Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Aug 2014 06:56:22 +0000 (UTC)
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r270086 - stable/10/sys/kern
Message-ID:  <201408170656.s7H6uMDj031393@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408170656.s7H6uMDj031393>