Remove dead code.

c is assigned 0 and *loc is pointing to NULL, so c!=0 cannot be true,
and dereferencing loc would be a bad idea anyway.

Coverity Prevent:	CID 5113
Reviewed by:		jilles
This commit is contained in:
uqs 2010-12-18 22:16:15 +00:00
parent 97ef6c1ba4
commit bd917baec5

View File

@ -557,8 +557,6 @@ subevalvar(char *p, char *str, int strloc, int subtype, int startloc,
amount = startp - expdest;
STADJUST(amount, expdest);
varflags &= ~VSNUL;
if (c != 0)
*loc = c;
return 1;
case VSQUESTION: