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:
parent
de956290ba
commit
f6b767b026
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=216544
@ -557,8 +557,6 @@ subevalvar(char *p, char *str, int strloc, int subtype, int startloc,
|
|||||||
amount = startp - expdest;
|
amount = startp - expdest;
|
||||||
STADJUST(amount, expdest);
|
STADJUST(amount, expdest);
|
||||||
varflags &= ~VSNUL;
|
varflags &= ~VSNUL;
|
||||||
if (c != 0)
|
|
||||||
*loc = c;
|
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
case VSQUESTION:
|
case VSQUESTION:
|
||||||
|
Loading…
Reference in New Issue
Block a user