about summary refs log tree commit diff
path: root/Src/loop.c
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-01-04 08:38:11 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-01-04 08:38:11 +0000
commitf1b72aad8d7374219d332d1e880f247a80e621b0 (patch)
tree9ecc915f0ace7c415ae3166e3bf0ab2c48f3e860 /Src/loop.c
parent7ce9bfda5234752a89e46cd85fe5462570b63605 (diff)
downloadzsh-f1b72aad8d7374219d332d1e880f247a80e621b0.tar.gz
zsh-f1b72aad8d7374219d332d1e880f247a80e621b0.tar.xz
zsh-f1b72aad8d7374219d332d1e880f247a80e621b0.zip
zsh-workers/9188
Diffstat (limited to 'Src/loop.c')
-rw-r--r--Src/loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/loop.c b/Src/loop.c
index b81ce29aa..0d7379c00 100644
--- a/Src/loop.c
+++ b/Src/loop.c
@@ -357,7 +357,7 @@ execrepeat(Cmd cmd, LinkList args, int flags)
     pushheap();
     cmdpush(CS_REPEAT);
     loops++;
-    while (count--) {
+    while (count-- > 0) {
 	execlist(cmd->u.list, 1, 0);
 	freeheap();
 	if (breaks) {