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 | f5f4bc789a68ab52f0c57f7fddb9b63a3edfd008 (patch) | |
tree | 7cd20d6a0d313384d1c633eae0fc9c650bfc0e21 /pw | |
parent | 31237f35997170d68924bcb861ff911e411a4ae3 (diff) | |
download | pw-darwin-f5f4bc789a68ab52f0c57f7fddb9b63a3edfd008.tar.gz pw-darwin-f5f4bc789a68ab52f0c57f7fddb9b63a3edfd008.tar.zst pw-darwin-f5f4bc789a68ab52f0c57f7fddb9b63a3edfd008.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); |