Fix Jeff Whittaker's bug NCF-156

This commit is contained in:
Russ Rew 2012-03-09 19:19:43 +00:00
parent 787d32fffd
commit d412686ec3

View File

@ -259,7 +259,7 @@ nc4_put_att(int ncid, NC_FILE_INFO_T *nc, int varid, const char *name,
{
if (h5->cmode & NC_CLASSIC_MODEL)
return NC_EINDEFINE;
if ((retval = nc_enddef(ncid)))
if ((retval = NC4_redef(ncid)))
BAIL(retval);
}
}