mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-18 15:55:12 +08:00
Corrected an error preventing netcdf from compiling.
This commit is contained in:
parent
ba726d55ce
commit
fcb0eb2df6
@ -730,7 +730,7 @@ ocmktmp(const char* base, char** tmpnamep, int* fdp)
|
||||
return OC_EOPEN;
|
||||
}
|
||||
if(tmpnamep) *tmpnamep = tmpname;
|
||||
else if(tmpname != null) {free(tmpname);}
|
||||
else if(tmpname != NULL) {free(tmpname);}
|
||||
if(fdp) *fdp = fd;
|
||||
else if(fd >= 0) close(fd);
|
||||
return OC_NOERR;
|
||||
|
Loading…
Reference in New Issue
Block a user