Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Jul 2014 05:45:40 +0000 (UTC)
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r268136 - head/sys/kern
Message-ID:  <201407020545.s625jeih047466@svn.freebsd.org>

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



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