From 24bd1029ca647dceaa418a6db3fb0bcc6bb529da Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 9 Apr 2020 03:15:55 -0500 Subject: Fix "else" loop. --- toys/pending/sh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toys/pending/sh.c b/toys/pending/sh.c index 183d5fd1..959330f5 100644 --- a/toys/pending/sh.c +++ b/toys/pending/sh.c @@ -1979,7 +1979,7 @@ if (BUGBUG) dprintf(255, "%d runtype=%d %s %s\n", getpid(), pl->type, s, ctl); // Skip disabled block if (blk && !blk->run) { - while (pl->next && !pl->next->type) pl = pl->next; + pl = pl->next; continue; } if (pipe_segments(ctl, pipes, &urd)) break; -- cgit v1.2.3