Corrected a dead-code issue reported by Coverity (that I introduced).

This commit is contained in:
Ward Fisher 2015-09-24 11:32:31 -06:00
parent 33f8d2321d
commit 8515ece987

View File

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