Merge branch 'nc4var.c' of https://github.com/wkliao/netcdf-c into gh2261.wif

This commit is contained in:
Ward Fisher 2022-03-28 14:04:06 -06:00
commit 6649d74ff8

View File

@ -481,7 +481,7 @@ NC4_var_par_access(int ncid, int varid, int par_access)
/* If zlib, shuffle, or fletcher32 filters are in use, then access /* If zlib, shuffle, or fletcher32 filters are in use, then access
* must be collective. Fail an attempt to set such a variable to * must be collective. Fail an attempt to set such a variable to
* independent access. */ * independent access. */
if (nclistlength((NClist*)var->filters) > 0) if (nclistlength((NClist*)var->filters) > 0 &&
par_access == NC_INDEPENDENT) par_access == NC_INDEPENDENT)
return NC_EINVAL; return NC_EINVAL;