mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-30 16:10:44 +08:00
Corrected a dead-code issue reported by Coverity (that I introduced).
This commit is contained in:
parent
33f8d2321d
commit
8515ece987
@ -534,8 +534,6 @@ int NC_lookupvar(NC3_INFO* ncp, int varid, NC_var **varp)
|
||||
else
|
||||
return NC_ENOTVAR;
|
||||
|
||||
if(varp == NULL)
|
||||
return NC_ENOTVAR;
|
||||
if(*varp == NULL)
|
||||
return NC_ENOTVAR;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user