diff options
author | jilles <jilles@FreeBSD.org> | 2016-03-06 17:24:02 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2016-03-06 17:24:02 +0000 |
commit | 05627affe1e146126da126a989ed16ce668fa8f7 (patch) | |
tree | 7ae7daa85baee25b342045f99b3496bd1a45b176 /bin/sh/expand.c | |
parent | dad90af48902731a920169292dc39a19d544fd49 (diff) | |
download | FreeBSD-src-05627affe1e146126da126a989ed16ce668fa8f7.zip FreeBSD-src-05627affe1e146126da126a989ed16ce668fa8f7.tar.gz |
sh: Fix some dead stores.
Found by: clang static analyzer
Diffstat (limited to 'bin/sh/expand.c')
-rw-r--r-- | bin/sh/expand.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/sh/expand.c b/bin/sh/expand.c index 6129bb6..6d0d78a 100644 --- a/bin/sh/expand.c +++ b/bin/sh/expand.c @@ -463,7 +463,6 @@ expbackq(union node *cmd, int quoted, int flag, struct worddest *dst) argbackq = saveargbackq; p = in.buf; - lastc = '\0'; nnl = 0; if (!quoted && flag & EXP_SPLIT) ifs = ifsset() ? ifsval() : " \t\n"; @@ -1288,7 +1287,7 @@ patmatch(const char *pattern, const char *string) if (wc == 0) goto backtrack; } else - wc = (unsigned char)*q++; + q++; break; case '*': c = *p; |