From 41ce2cbb8ff6253bc1a223298ad93f75dfabcceb Mon Sep 17 00:00:00 2001 From: Jens Steinhauser Date: Tue, 15 Jul 2014 23:40:20 +0200 Subject: [PATCH] options: Make sure there are no extra arguments. --- options.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/options.c b/options.c index 03c001c..c8b51ec 100644 --- a/options.c +++ b/options.c @@ -181,6 +181,11 @@ int parse_options(int argc, char **argv) opt_output_file = g_strdup(output_file_array[0]); } + if (1 != argc) { + g_critical("superfluous command line argument \"%s\"", argv[1]); + goto done; + } + ret = 0; done: -- 2.30.2