Date: Sun, 7 Jun 2015 15:29:58 +0000 (UTC) From: Baptiste Daroussin <bapt@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r284123 - head/usr.sbin/pw Message-ID: <201506071529.t57FTwVG023248@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506071529.t57FTwVG023248>