Corrected an error preventing netcdf from compiling.

This commit is contained in:
Ward Fisher 2014-03-03 15:36:19 -07:00
parent ba726d55ce
commit fcb0eb2df6

View File

@ -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;