From 0fa3029c885cdcb5f25ad606e88cf09482d28226 Mon Sep 17 00:00:00 2001 From: "H. Joe Lee" Date: Tue, 28 Nov 2023 15:31:35 -0600 Subject: Fix h5dump segmentation fault when --vfd-value option is used (#3873) --- tools/src/h5dump/h5dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")) -- cgit v0.12