fixed gen_box
[vrfileman] / src / opt.cc
index b25edc5..de3f5a3 100644 (file)
@@ -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) {