mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
add NULL name check
This commit is contained in:
parent
125ca43cfb
commit
df91c19f3c
@ -806,6 +806,9 @@ NC3_put_att(
|
||||
if(ncap == NULL)
|
||||
return NC_ENOTVAR;
|
||||
|
||||
if (name == NULL)
|
||||
return NC_EBADNAME;
|
||||
|
||||
status = nc3_cktype(nc->mode, type);
|
||||
if(status != NC_NOERR)
|
||||
return status;
|
||||
|
Loading…
Reference in New Issue
Block a user