svn commit: r284123 - head/usr.sbin/pw

Baptiste Daroussin bapt at FreeBSD.org
Sun Jun 7 15:29:58 UTC 2015


Author: bapt
Date: Sun Jun  7 15:29:58 2015
New Revision: 284123
URL: https://svnweb.freebsd.org/changeset/base/284123

Log:
  Initialize conf using menset(3)

Modified:
  head/usr.sbin/pw/pw.c

Modified: head/usr.sbin/pw/pw.c
==============================================================================
--- head/usr.sbin/pw/pw.c	Sun Jun  7 15:27:17 2015	(r284122)
+++ head/usr.sbin/pw/pw.c	Sun Jun  7 15:29:58 2015	(r284123)
@@ -131,9 +131,7 @@ main(int argc, char *argv[])
 	};
 
 	relocated = nis = false;
-	conf.rootdir[0] = '\0';
-	conf.dryrun = false;
-	conf.pretty = false;
+	memset(&conf, 0, sizeof(conf));
 	strlcpy(conf.etcpath, _PATH_PWD, sizeof(conf.etcpath));
 
 	LIST_INIT(&arglist);


More information about the svn-src-head mailing list