further movement towards NC_HDF5_FILE_INFO_T

This commit is contained in:
Ed Hartnett 2018-07-19 12:47:43 -06:00
parent b1a478a497
commit 582bd5ec1a
2 changed files with 6 additions and 3 deletions

View File

@ -224,7 +224,7 @@ nc4_create_file(const char *path, int cmode, size_t initialsz,
}
/* Open the root group. */
if ((nc4_info->root_grp->hdf_grpid = H5Gopen2(nc4_info->hdfid, "/",
if ((nc4_info->root_grp->hdf_grpid = H5Gopen2(hdf5_info->hdfid, "/",
H5P_DEFAULT)) < 0)
BAIL(NC_EFILEMETA);

View File

@ -2040,8 +2040,11 @@ nc4_rec_read_metadata(NC_GRP_INFO_T *grp)
}
else
{
if ((grp->hdf_grpid = H5Gopen2(grp->nc4_info->hdfid,
"/", H5P_DEFAULT)) < 0)
NC_HDF5_FILE_INFO_T *hdf5_info;
hdf5_info = (NC_HDF5_FILE_INFO_T *)grp->nc4_info->format_file_info;
if ((grp->hdf_grpid = H5Gopen2(hdf5_info->hdfid, "/",
H5P_DEFAULT)) < 0)
BAIL(NC_EHDFERR);
}
}