From 080a7ebb3760b9bdbe62bf574bf26f5827ef02ea Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Sun, 30 Jun 2013 18:12:38 -0500 Subject: [svn-r23851] Bug fix: after printing usage for -h option, it should have ended the program. Solution: added exit(0) after usage(). This is not a good fix but will work for now. Test: jam. --- test/use_common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/use_common.c b/test/use_common.c index 380ef6c..9c786f4 100644 --- a/test/use_common.c +++ b/test/use_common.c @@ -50,6 +50,7 @@ parse_option(int argc, char * const argv[]) switch (c) { case 'h': usage(progname_g); + exit(0); break; case 'f': /* usecase data file name */ UC_opts.filename = optarg; -- cgit v0.12