svn commit: r327532 - user/jeff/numa/usr.bin/cpuset

Jeff Roberson jeff at FreeBSD.org
Wed Jan 3 23:58:15 UTC 2018


Author: jeff
Date: Wed Jan  3 23:58:13 2018
New Revision: 327532
URL: https://svnweb.freebsd.org/changeset/base/327532

Log:
  Gcc is not smart enough to see that policy is not used before
  initialization.  Set a nonsense default value.

Modified:
  user/jeff/numa/usr.bin/cpuset/cpuset.c

Modified: user/jeff/numa/usr.bin/cpuset/cpuset.c
==============================================================================
--- user/jeff/numa/usr.bin/cpuset/cpuset.c	Wed Jan  3 23:57:41 2018	(r327531)
+++ user/jeff/numa/usr.bin/cpuset/cpuset.c	Wed Jan  3 23:58:13 2018	(r327532)
@@ -292,6 +292,7 @@ main(int argc, char *argv[])
 
 	CPU_ZERO(&mask);
 	DOMAINSET_ZERO(&domains);
+	policy = DOMAINSET_POLICY_INVALID;
 	level = CPU_LEVEL_WHICH;
 	which = CPU_WHICH_PID;
 	id = pid = tid = setid = -1;


More information about the svn-src-user mailing list