Skip to content

Commit

Permalink
Updated libsrc/attr.m4 in support of #843
Browse files Browse the repository at this point in the history
  • Loading branch information
WardF committed Feb 27, 2018
1 parent 3dcb627 commit 6ce110e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions libsrc/attr.m4
Original file line number Diff line number Diff line change
Expand Up @@ -844,10 +844,17 @@ NC3_put_att(
if(nelems != 0 && value == NULL)
return NC_EINVAL; /* Null arg */

/* Temporarily removed to preserve extant
workflows (NCO based and others). See

https://github.com/Unidata/netcdf-c/issues/843

for more information. */

if (varid != NC_GLOBAL && !strcmp(name, _FillValue)) {
/* Fill value must be of the same data type */
if (type != ncp->vars.value[varid]->type) return NC_EBADTYPE;

/* Fill value must have exactly one value */
if (nelems != 1) return NC_EINVAL;

Expand Down Expand Up @@ -1007,4 +1014,3 @@ NC3_get_att(
status = NC_EBADTYPE;
return status;
}

0 comments on commit 6ce110e

Please sign in to comment.