Revert "Fix compliance with classic model"

This reverts commit 513e10d057.
This commit is contained in:
Greg Sjaardema 2015-11-16 07:38:30 -05:00
parent 5181f24edb
commit c62f2703a1

View File

@ -391,8 +391,8 @@ nc_def_var_nc4(int ncid, const char *name, nc_type xtype,
BAIL(NC_EINVAL);
/* Classic model files have a limit on number of vars. */
if(h5->cmode & NC_CLASSIC_MODEL && grp->nvars >= NC_MAX_VARS)
BAIL(NC_EMAXVARS);
if(h5->cmode & NC_CLASSIC_MODEL && h5->nvars >= NC_MAX_VARS)
BAIL(NC_EMAXVARS);
/* Check that this name is not in use as a var, grp, or type. */
if ((retval = nc4_check_dup_name(grp, norm_name)))