From 5dca082c9d8261794d9cc63ed241aa3afa5bb50a Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 12 Jan 2010 04:28:02 +0100 Subject: [PATCH] filter: Print meaningful error message if no filter options are given. --- filter.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/filter.c b/filter.c index 8ebceb44..bf428b36 100644 --- 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, ¶ms)) return -E_FILTER_SYNTAX; } + if (!conf.filter_given) + return -E_NO_FILTERS; return 1; } -- 2.30.2