fxed another clang warning

This commit is contained in:
Ed Hartnett 2018-07-06 06:49:32 -06:00
parent 044b13fe34
commit 8b902e67c9

View File

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