summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Joe Lee <hyoklee@hdfgroup.org>2023-11-28 21:31:35 (GMT)
committerGitHub <noreply@github.com>2023-11-28 21:31:35 (GMT)
commit0fa3029c885cdcb5f25ad606e88cf09482d28226 (patch)
treef64efca0988a9c881d2cc9448f2616da4eaad2cb
parentfc88fcde1091cf12c1e88c783a14ee0f1cffe31c (diff)
downloadhdf5-0fa3029c885cdcb5f25ad606e88cf09482d28226.zip
hdf5-0fa3029c885cdcb5f25ad606e88cf09482d28226.tar.gz
hdf5-0fa3029c885cdcb5f25ad606e88cf09482d28226.tar.bz2
Fix h5dump segmentation fault when --vfd-value option is used (#3873)
-rw-r--r--tools/src/h5dump/h5dump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/src/h5dump/h5dump.c b/tools/src/h5dump/h5dump.c
index d6a2148..8f2c406 100644
--- a/tools/src/h5dump/h5dump.c
+++ b/tools/src/h5dump/h5dump.c
@@ -1234,7 +1234,7 @@ end_collect:
}
/* If the file uses the onion VFD, get the revision number */
- if (vfd_info_g.u.name && !strcmp(vfd_info_g.u.name, "onion")) {
+ if (vfd_info_g.type == VFD_BY_NAME && vfd_info_g.u.name && !strcmp(vfd_info_g.u.name, "onion")) {
if (vfd_info_g.info) {
if (!strcmp(vfd_info_g.info, "revision_count"))