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:
Ulrich Spörlein 2010-12-18 22:16:15 +00:00
parent de956290ba
commit f6b767b026
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=216544

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: