summaryrefslogtreecommitdiffstats
path: root/tools/src/h5dump/h5dump.c
diff options
context:
space:
mode:
authorjhendersonHDF <jhenderson@hdfgroup.org>2022-05-06 18:06:07 (GMT)
committerGitHub <noreply@github.com>2022-05-06 18:06:07 (GMT)
commit13985a7f529a3628fe215478f9d77f0d5b9b0fd1 (patch)
treed82bdd79c45f99b5237977e3371af5a689014c14 /tools/src/h5dump/h5dump.c
parentcdf837d0a16acd657e53057d19b4b21763eeca45 (diff)
downloadhdf5-13985a7f529a3628fe215478f9d77f0d5b9b0fd1.zip
hdf5-13985a7f529a3628fe215478f9d77f0d5b9b0fd1.tar.gz
hdf5-13985a7f529a3628fe215478f9d77f0d5b9b0fd1.tar.bz2
Fixes for S3 and HDFS VFDs with tools (#1740)
Diffstat (limited to 'tools/src/h5dump/h5dump.c')
-rw-r--r--tools/src/h5dump/h5dump.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/src/h5dump/h5dump.c b/tools/src/h5dump/h5dump.c
index d82ea94..22b869c 100644
--- a/tools/src/h5dump/h5dump.c
+++ b/tools/src/h5dump/h5dump.c
@@ -25,8 +25,8 @@ static const char *xml_dtd_uri_g = NULL;
static hbool_t use_custom_vol_g = FALSE;
static hbool_t use_custom_vfd_g = FALSE;
-static h5tools_vol_info_t vol_info_g;
-static h5tools_vfd_info_t vfd_info_g;
+static h5tools_vol_info_t vol_info_g = {0};
+static h5tools_vfd_info_t vfd_info_g = {0};
#ifdef H5_HAVE_ROS3_VFD
/* Default "anonymous" S3 configuration */
@@ -1238,6 +1238,8 @@ end_collect:
h5tools_setstatus(EXIT_FAILURE);
goto done;
}
+
+ vfd_info_g.info = &ros3_fa_g;
#else
error_msg("Read-Only S3 VFD not enabled.\n");
h5tools_setstatus(EXIT_FAILURE);
@@ -1255,6 +1257,8 @@ end_collect:
h5tools_setstatus(EXIT_FAILURE);
goto done;
}
+
+ vfd_info_g.info = &hdfs_fa_g;
#else
error_msg("HDFS VFD not enabled.\n");
h5tools_setstatus(EXIT_FAILURE);