Fix h5dump segmentation fault when --vfd-value option is used (#3873)

This commit is contained in:
H. Joe Lee 2023-11-28 15:31:35 -06:00 committed by GitHub
parent fc88fcde10
commit 0fa3029c88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"))