]> mj.ucw.cz Git - libucw.git/commitdiff
Opt: exit() does not return, no need to call va_end() afterwards
authorMartin Mares <mj@ucw.cz>
Mon, 27 Jan 2014 16:18:02 +0000 (17:18 +0100)
committerMartin Mares <mj@ucw.cz>
Mon, 27 Jan 2014 16:18:02 +0000 (17:18 +0100)
ucw/opt.c

index 5ba7954d15ed269d3f67b84a5611e5421b33b1a7..5a529d7ff2ba0438293a7b5e50aa5e8b5487d9c5 100644 (file)
--- a/ucw/opt.c
+++ b/ucw/opt.c
@@ -68,7 +68,6 @@ static void opt_failure(const char * mesg, ...) {
   fprintf(stderr, "\n");
   opt_usage();
   exit(OPT_EXIT_BAD_ARGS);
-  va_end(args);                // FIXME: Does this make a sense after exit()?
 }
 
 static char *opt_name(struct opt_context *oc, struct opt_precomputed *opt)