summaryrefslogtreecommitdiffstats
path: root/tools/lib
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2013-02-04 20:15:59 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2013-02-04 20:15:59 (GMT)
commitc3e149d06fe79fab3b5e48d4d9198cacea42ed53 (patch)
tree85d991d39d538e4a5adf41b7f93a571f612e0b95 /tools/lib
parentc0b2724d4db12e75ef5e297900b088f1839886cd (diff)
downloadhdf5-c3e149d06fe79fab3b5e48d4d9198cacea42ed53.zip
hdf5-c3e149d06fe79fab3b5e48d4d9198cacea42ed53.tar.gz
hdf5-c3e149d06fe79fab3b5e48d4d9198cacea42ed53.tar.bz2
[svn-r23226] HDFFV-8285: suppress-ddl option: Changed file options to allow for filename F to be optional.
Tested: local linux
Diffstat (limited to 'tools/lib')
-rw-r--r--tools/lib/h5tools.c1
-rw-r--r--tools/lib/h5tools_utils.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/tools/lib/h5tools.c b/tools/lib/h5tools.c
index 0d9bc15..5f4227c 100644
--- a/tools/lib/h5tools.c
+++ b/tools/lib/h5tools.c
@@ -153,6 +153,7 @@ h5tools_close(void)
H5E_auto2_t tools_func;
void *tools_edata;
if (h5tools_init_g) {
+ /* special case where only data is output to stdout */
if((rawoutstream == NULL) && rawdatastream && (rawdatastream == stdout))
HDfprintf(rawdatastream, "\n");
diff --git a/tools/lib/h5tools_utils.c b/tools/lib/h5tools_utils.c
index d45eab2..d7c5adb 100644
--- a/tools/lib/h5tools_utils.c
+++ b/tools/lib/h5tools_utils.c
@@ -277,6 +277,8 @@ get_option(int argc, const char **argv, const char *opts, const struct long_opti
opt_opt = '?';
}
+ else
+ opt_arg = NULL;
}
else {
if (arg[len] == '=') {