Create var correctly for hdf4 files

This commit is contained in:
Greg Sjaardema 2016-11-16 10:37:37 -07:00
parent a55d96eba1
commit b9c50aec89

View File

@ -2602,6 +2602,8 @@ nc4_open_hdf4_file(const char *path, int mode, NC *nc)
var->created = NC_TRUE;
var->written_to = NC_TRUE;
nc4_vararray_add(grp, var);
/* Open this dataset in HDF4 file. */
if ((var->sdsid = SDselect(h5->sdid, v)) == FAIL)
return NC_EVARMETA;