Skip to content

Commit

Permalink
Create var correctly for hdf4 files
Browse files Browse the repository at this point in the history
  • Loading branch information
gdsjaar committed Nov 16, 2016
1 parent a55d96e commit b9c50ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libsrc4/nc4file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b9c50ae

Please sign in to comment.