mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-27 07:30:33 +08:00
fxed another clang warning
This commit is contained in:
parent
044b13fe34
commit
8b902e67c9
@ -119,7 +119,7 @@ NCD4_open(const char * path, int mode,
|
||||
nc_set_default_format(old,&new); /* restore */
|
||||
d4info->substrate.realfile = ((ncflags & NC_DISKLESS) == 0);
|
||||
d4info->substrate.filename = strdup(tmpname);
|
||||
if(tmpname == NULL) ret = NC_ENOMEM;
|
||||
if(d4info->substrate.filename == NULL) ret = NC_ENOMEM;
|
||||
d4info->substrate.nc4id = ncid;
|
||||
}
|
||||
if(ret != NC_NOERR) goto done;
|
||||
|
Loading…
Reference in New Issue
Block a user