mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-12 15:45:21 +08:00
Merge branch 'patch-26' of https://github.com/gsjaardema/netcdf-c into v4.6.2-release-branch.wif
This commit is contained in:
commit
c97e4b144e
@ -446,7 +446,7 @@ memio_pad_length(ncio* nciop, off_t length)
|
||||
if(nciop == NULL || nciop->pvt == NULL) return NC_EINVAL;
|
||||
memio = (NCMEMIO*)nciop->pvt;
|
||||
|
||||
if(fIsSet(nciop->ioflags,NC_WRITE))
|
||||
if(!fIsSet(nciop->ioflags,NC_WRITE))
|
||||
return EPERM; /* attempt to write readonly file*/
|
||||
if(memio->locked)
|
||||
return NC_EINMEMORY;
|
||||
|
Loading…
Reference in New Issue
Block a user