projects
/
vrfileman
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed gen_box
[vrfileman]
/
src
/
opt.cc
diff --git
a/src/opt.cc
b/src/opt.cc
index
b25edc5
..
de3f5a3
100644
(file)
--- a/
src/opt.cc
+++ b/
src/opt.cc
@@
-39,9
+39,8
@@
bool init_options(int argc, char **argv, const char *cfgfile)
optcfg *oc = optcfg_init(options);
optcfg_set_opt_callback(oc, opt_handler, 0);
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) {
}
if(argv && optcfg_parse_args(oc, argc, argv) == -1) {