aboutsummaryrefslogtreecommitdiff
path: root/toys/pending
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2020-04-09 03:15:55 -0500
committerRob Landley <rob@landley.net>2020-04-09 03:15:55 -0500
commit24bd1029ca647dceaa418a6db3fb0bcc6bb529da (patch)
tree1b34528f9a13c2f0b7feacce2be6496e26b9d824 /toys/pending
parent41dfa883e178c239bed0ec02fa38af09739d55b0 (diff)
downloadtoybox-24bd1029ca647dceaa418a6db3fb0bcc6bb529da.tar.gz
Fix "else" loop.
Diffstat (limited to 'toys/pending')
-rw-r--r--toys/pending/sh.c2
1 files changed, 1 insertions, 1 deletions
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;