mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-27 07:30:33 +08:00
Create var correctly for hdf4 files
This commit is contained in:
parent
a55d96eba1
commit
b9c50aec89
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user