From 2d48d13735a7b532d76fe7da8afe8244b3224c50 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 28 Jan 2021 02:40:59 -0600 Subject: Shut gcc's "is not actually used uninitialized" false positive warnings up. --- toys/pending/sh.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'toys/pending') 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) -- cgit v1.2.3