diff options
author | David Young <dyoung@hdfgroup.org> | 2020-07-14 13:56:32 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-07-14 13:56:32 (GMT) |
commit | 12e5f29e48752b4fa9014fe9a0696e378225fcc3 (patch) | |
tree | 616710cf7c937d47424deab5cb98950538ab9659 /src/H5FDvfd_swmr.c | |
parent | 323380e6b958a1fe83ad67d576b9503610e5502d (diff) | |
download | hdf5-12e5f29e48752b4fa9014fe9a0696e378225fcc3.zip hdf5-12e5f29e48752b4fa9014fe9a0696e378225fcc3.tar.gz hdf5-12e5f29e48752b4fa9014fe9a0696e378225fcc3.tar.bz2 |
Take care to initialize the metadata file descriptor to -1 so that we don't try
to close descriptor 0, later.
Diffstat (limited to 'src/H5FDvfd_swmr.c')
-rw-r--r-- | src/H5FDvfd_swmr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/H5FDvfd_swmr.c b/src/H5FDvfd_swmr.c index 2cf19a1..f720606 100644 --- a/src/H5FDvfd_swmr.c +++ b/src/H5FDvfd_swmr.c @@ -300,6 +300,7 @@ H5FD_vfd_swmr_open(const char *name, unsigned flags, hid_t fapl_id, "unable to allocate file struct"); } + file->md_fd = -1; file->hdf5_file_lf = NULL; file->md_pages_reserved = vfd_swmr_config->md_pages_reserved; |