Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Oct 2017 15:53:19 +0000 (UTC)
From:      Ngie Cooper <ngie@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: r324692 - stable/10/usr.bin/su
Message-ID:  <201710171553.v9HFrJgn010383@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Tue Oct 17 15:53:19 2017
New Revision: 324692
URL: https://svnweb.freebsd.org/changeset/base/324692

Log:
  MFC r324497:
  
  Mute gcc warning about p not being possibly initialized
  
  I'm running into this warning on a tinderbox run with gcc 4.2.1 with mips and
  powerpc.

Modified:
  stable/10/usr.bin/su/su.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/usr.bin/su/su.c
==============================================================================
--- stable/10/usr.bin/su/su.c	Tue Oct 17 15:52:02 2017	(r324691)
+++ stable/10/usr.bin/su/su.c	Tue Oct 17 15:53:19 2017	(r324692)
@@ -172,7 +172,7 @@ main(int argc, char *argv[])
 	au_id_t		 auid;
 #endif
 
-	shell = class = cleanenv = NULL;
+	p = shell = class = cleanenv = NULL;
 	asme = asthem = fastlogin = statusp = 0;
 	user = "root";
 	iscsh = UNSET;



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