From: Paul Brossier Date: Fri, 5 Oct 2018 19:04:12 +0000 (+0200) Subject: examples/parse_args.h: avoid unreachable code, add comment X-Git-Tag: 0.4.8~92^2~20^2 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=c8b52aba3554a5c1c13759497a66c71d9f014b05;p=aubio.git examples/parse_args.h: avoid unreachable code, add comment --- diff --git a/examples/parse_args.h b/examples/parse_args.h index 4402effd..abe1023c 100644 --- a/examples/parse_args.h +++ b/examples/parse_args.h @@ -200,11 +200,11 @@ parse_args (int argc, char **argv) {NULL, 0, NULL, 0} }; #endif /* HAVE_GETOPT_H */ - prog_name = argv[0]; + // better safe than sorry if (argc < 1) { usage (stderr, 1); - return -1; } + prog_name = argv[0]; #ifdef HAVE_GETOPT_H do { next_option = getopt_long (argc, argv, options, long_options, NULL);