shithub: aubio

Download patch

ref: c8b52aba3554a5c1c13759497a66c71d9f014b05
parent: faf270282084fb5070e5b2eaabfefeba4cb5350f
author: Paul Brossier <piem@piem.org>
date: Fri Oct 5 17:04:12 EDT 2018

examples/parse_args.h: avoid unreachable code, add comment

--- a/examples/parse_args.h
+++ b/examples/parse_args.h
@@ -200,11 +200,11 @@
     {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);