fxed another clang warning
@@ -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;
