diff options
author | Rob Landley <rob@landley.net> | 2021-01-28 02:40:59 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2021-01-28 02:40:59 -0600 |
commit | 2d48d13735a7b532d76fe7da8afe8244b3224c50 (patch) | |
tree | da4e5f84fa80619d8b0e2ede81d9c32af737abf9 /toys/pending | |
parent | e6d103ce23000a326065bd11a708e69b08d3d1e5 (diff) | |
download | toybox-2d48d13735a7b532d76fe7da8afe8244b3224c50.tar.gz |
Shut gcc's "is not actually used uninitialized" false positive warnings up.
Diffstat (limited to 'toys/pending')
-rw-r--r-- | toys/pending/sh.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toys/pending/sh.c b/toys/pending/sh.c index 14fb55cd..cbbfaa09 100644 --- a/toys/pending/sh.c +++ b/toys/pending/sh.c @@ -1157,7 +1157,7 @@ char *slashcopy(char *s, char *c, struct sh_arg *deck) static int expand_arg_nobrace(struct sh_arg *arg, char *str, unsigned flags, struct arg_list **delete, struct sh_arg *ant) { - char cc, qq = flags&NO_QUOTE, sep[6], *new = str, *s, *ss, *ifs, *slice; + char cc, qq = flags&NO_QUOTE, sep[6], *new = str, *s, *ss = ss, *ifs, *slice; int ii = 0, oo = 0, xx, yy, dd, jj, kk, ll, mm; struct sh_arg deck = {0}; @@ -1816,7 +1816,7 @@ static char *expand_one_arg(char *new, unsigned flags, struct arg_list **del) static char *pl2str(struct sh_pipeline *pl, int one) { struct sh_pipeline *end = 0, *pp; - int len, i; + int len = len, i; char *s, *ss; // Find end of block (or one argument) |