From d412686ec3b8e6573ea6d88b6364f39cb0305627 Mon Sep 17 00:00:00 2001 From: Russ Rew Date: Fri, 9 Mar 2012 19:19:43 +0000 Subject: [PATCH] Fix Jeff Whittaker's bug NCF-156 --- libsrc4/nc4attr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc4/nc4attr.c b/libsrc4/nc4attr.c index 61bf4f3cb..92bba263c 100644 --- a/libsrc4/nc4attr.c +++ b/libsrc4/nc4attr.c @@ -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); } }