mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-30 16:10:44 +08:00
Revert "Fix compliance with classic model"
This reverts commit 513e10d057
.
This commit is contained in:
parent
5181f24edb
commit
c62f2703a1
@ -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)))
|
||||
|
Loading…
Reference in New Issue
Block a user