Initialize conf using menset(3)

This commit is contained in:
Baptiste Daroussin 2015-06-07 15:29:58 +00:00
parent 2166b4d190
commit bbe09b2e19

View File

@ -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);