aac_afh.c: Fix serious memory leak.
[paraslash.git] / filter.c
index 1ca416484e2f9bf9c9aaad649fd1d72fa9c88309..842e030f3eb58cf13257406154f2aeb17c650826 100644 (file)
--- a/filter.c
+++ b/filter.c
@@ -109,7 +109,13 @@ static int parse_config(int argc, char *argv[])
                free(home);
        }
        if (!stat(cf, &statbuf)) {
                free(home);
        }
        if (!stat(cf, &statbuf)) {
-               if (filter_cmdline_parser_configfile(cf, &conf, 0, 0, 0))
+               struct filter_cmdline_parser_params params = {
+                       .override = 0,
+                       .initialize = 0,
+                       .check_required = 0,
+                       .check_ambiguity = 0
+               };
+               if (filter_cmdline_parser_config_file(cf, &conf, &params))
                        return -E_FILTER_SYNTAX;
        }
        if (!conf.list_filters_given)
                        return -E_FILTER_SYNTAX;
        }
        if (!conf.list_filters_given)