summaryrefslogtreecommitdiffstats
path: root/test/use_common.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2020-05-10 16:48:30 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2020-05-10 16:48:30 (GMT)
commit55844f79e94d49f7ccc8fff1fa3d80f153bb13ea (patch)
tree54db1d6e7430a74623757611d86eeab81fc8ce0d /test/use_common.c
parentf7bfa60bf9f591f03963137c8bb41b0d2b90a1c1 (diff)
downloadhdf5-55844f79e94d49f7ccc8fff1fa3d80f153bb13ea.zip
hdf5-55844f79e94d49f7ccc8fff1fa3d80f153bb13ea.tar.gz
hdf5-55844f79e94d49f7ccc8fff1fa3d80f153bb13ea.tar.bz2
Misc warning fixes.
Diffstat (limited to 'test/use_common.c')
-rw-r--r--test/use_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/use_common.c b/test/use_common.c
index b537741..7e19167 100644
--- a/test/use_common.c
+++ b/test/use_common.c
@@ -70,7 +70,7 @@ parse_option(int argc, char * const argv[], options_t * opts)
exit(EXIT_SUCCESS);
break;
case 'f': /* usecase data file name */
- opts->filename = optarg;
+ opts->filename = HDstrdup(optarg);
break;
case 'i': /* iterations */
if ((opts->iterations = HDatoi(optarg)) <= 0) {