diff options
author | bapt <bapt@FreeBSD.org> | 2015-06-07 15:29:58 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2015-06-07 15:29:58 +0000 |
commit | 9f5d2c6d199d6c5d12499bf85108c5ff1cc671e3 (patch) | |
tree | 1cdecaa75ad847b53d90e966608e7156c339c404 /usr.sbin/pw/pw.c | |
parent | 4ca3925ed28f1d1406eb93c5852f1b8bffd9d6cc (diff) | |
download | FreeBSD-src-9f5d2c6d199d6c5d12499bf85108c5ff1cc671e3.zip FreeBSD-src-9f5d2c6d199d6c5d12499bf85108c5ff1cc671e3.tar.gz |
Initialize conf using menset(3)
Diffstat (limited to 'usr.sbin/pw/pw.c')
-rw-r--r-- | usr.sbin/pw/pw.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.sbin/pw/pw.c b/usr.sbin/pw/pw.c index 22665e9..6376133 100644 --- a/usr.sbin/pw/pw.c +++ b/usr.sbin/pw/pw.c @@ -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); |