Skip to content

Commit

Permalink
Fix h5dump segmentation fault when --vfd-value option is used (#3873)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoklee authored Nov 28, 2023
1 parent fc88fcd commit 0fa3029
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/src/h5dump/h5dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -1234,7 +1234,7 @@ parse_command_line(int argc, const char *const *argv)
}

/* 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"))
Expand Down

0 comments on commit 0fa3029

Please sign in to comment.