From 8b902e67c9b1dd7c7d433a252ae955973e8b3bd9 Mon Sep 17 00:00:00 2001 From: Ed Hartnett Date: Fri, 6 Jul 2018 06:49:32 -0600 Subject: [PATCH] fxed another clang warning --- libdap4/d4file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libdap4/d4file.c b/libdap4/d4file.c index 5dc8e6b51..13e61726d 100644 --- a/libdap4/d4file.c +++ b/libdap4/d4file.c @@ -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;