]> git.tue.mpg.de Git - paraslash.git/commitdiff
filter: Print meaningful error message if no filter options are given.
authorAndre Noll <maan@systemlinux.org>
Tue, 12 Jan 2010 03:28:02 +0000 (04:28 +0100)
committerAndre Noll <maan@systemlinux.org>
Tue, 12 Jan 2010 03:28:02 +0000 (04:28 +0100)
filter.c

index 8ebceb44fd574f9a06c91d9a4c23d897827fc9a0..bf428b36dbc7668ccd2ac139117c7eb8d7d73ec0 100644 (file)
--- a/filter.c
+++ b/filter.c
@@ -87,6 +87,8 @@ static int parse_config(int argc, char *argv[])
                if (filter_cmdline_parser_config_file(cf, &conf, &params))
                        return -E_FILTER_SYNTAX;
        }
+       if (!conf.filter_given)
+               return -E_NO_FILTERS;
        return 1;
 }