diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-06-07 15:29:58 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-06-07 15:29:58 +0000 |
commit | 98e6bc31dc6985604ba6aa31a3c58fcb3f077127 (patch) | |
tree | 10aa32b86d6b92167b2941b1bb790ab4242e1faf /pw | |
parent | fec3dfc01be2e26eb5df5998a06066e2064e0a4b (diff) | |
download | pw-darwin-98e6bc31dc6985604ba6aa31a3c58fcb3f077127.tar.gz pw-darwin-98e6bc31dc6985604ba6aa31a3c58fcb3f077127.tar.zst pw-darwin-98e6bc31dc6985604ba6aa31a3c58fcb3f077127.zip |
Initialize conf using menset(3)
Diffstat (limited to 'pw')
-rw-r--r-- | pw/pw.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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); |