diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2017-12-29 15:05:30 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2017-12-29 15:05:30 (GMT) |
commit | f5f2c36d98a6bfeb41363e38f1a34036264d1036 (patch) | |
tree | 73b68f354b51083f56ad149d3efd1b5c7f6e4eb8 /src/H5Dvirtual.c | |
parent | bd34c9e455988ab1d4e550ff16c0410b5624298a (diff) | |
download | hdf5-f5f2c36d98a6bfeb41363e38f1a34036264d1036.zip hdf5-f5f2c36d98a6bfeb41363e38f1a34036264d1036.tar.gz hdf5-f5f2c36d98a6bfeb41363e38f1a34036264d1036.tar.bz2 |
HDFFV-9724 prefix of 0 length should be null value
Diffstat (limited to 'src/H5Dvirtual.c')
-rw-r--r-- | src/H5Dvirtual.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Dvirtual.c b/src/H5Dvirtual.c index 8d861c9..24623e4 100644 --- a/src/H5Dvirtual.c +++ b/src/H5Dvirtual.c @@ -898,7 +898,7 @@ H5D__virtual_open_file(hid_t plist_id, const H5F_t *vdset_file, H5E_BEGIN_TRY { size = H5Pget_virtual_prefix(plist_id, NULL, 0); } H5E_END_TRY; - if(size < 0) + if(size <= 0) my_prefix = NULL; else { /* Allocate a buffer to hold the filename + prefix + possibly the delimiter + terminating null byte */ |