summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2013-06-30 23:12:38 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2013-06-30 23:12:38 (GMT)
commit080a7ebb3760b9bdbe62bf574bf26f5827ef02ea (patch)
tree5c88c6adca800e941ec2c5b9ec428fe5537c863c
parent297ed85ea17ae27044e55bfdf71483c9bcddac63 (diff)
downloadhdf5-080a7ebb3760b9bdbe62bf574bf26f5827ef02ea.zip
hdf5-080a7ebb3760b9bdbe62bf574bf26f5827ef02ea.tar.gz
hdf5-080a7ebb3760b9bdbe62bf574bf26f5827ef02ea.tar.bz2
[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.
-rw-r--r--test/use_common.c1
1 files changed, 1 insertions, 0 deletions
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;