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
97ef6c1ba4
commit
bd917baec5
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user