optcfg *oc = optcfg_init(options);
optcfg_set_opt_callback(oc, opt_handler, 0);
- if(cfgfile && optcfg_parse_config_file(oc, cfgfile) == -1) {
- optcfg_destroy(oc);
- return false;
+ if(cfgfile) {
+ optcfg_parse_config_file(oc, cfgfile);
}
if(argv && optcfg_parse_args(oc, argc, argv) == -1) {