svn commit: r324693 - stable/11/usr.bin/su

Ngie Cooper ngie at FreeBSD.org
Tue Oct 17 15:53:24 UTC 2017


Author: ngie
Date: Tue Oct 17 15:53:22 2017
New Revision: 324693
URL: https://svnweb.freebsd.org/changeset/base/324693

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/11/usr.bin/su/su.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/usr.bin/su/su.c
==============================================================================
--- stable/11/usr.bin/su/su.c	Tue Oct 17 15:53:19 2017	(r324692)
+++ stable/11/usr.bin/su/su.c	Tue Oct 17 15:53:22 2017	(r324693)
@@ -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;


More information about the svn-src-stable mailing list