diff options
author | uqs <uqs@FreeBSD.org> | 2010-12-18 22:16:15 +0000 |
---|---|---|
committer | uqs <uqs@FreeBSD.org> | 2010-12-18 22:16:15 +0000 |
commit | bd917baec5241c9d30f1704785c14a2e78aaed01 (patch) | |
tree | ed999e88e511025e5e9ec5efc6092d72ea3baa8e | |
parent | 97ef6c1ba4027bbea37eef3f6814c7ea06401a68 (diff) | |
download | FreeBSD-src-bd917baec5241c9d30f1704785c14a2e78aaed01.zip FreeBSD-src-bd917baec5241c9d30f1704785c14a2e78aaed01.tar.gz |
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
-rw-r--r-- | bin/sh/expand.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/bin/sh/expand.c b/bin/sh/expand.c index 354d5e9..a0b172e 100644 --- a/bin/sh/expand.c +++ b/bin/sh/expand.c @@ -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: |