about summary refs log tree commit diff
path: root/Src/utils.c
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-02-28 13:29:43 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-02-28 13:29:43 +0000
commit927db585492cd7fada08aef799fb0025d345ca7e (patch)
tree57ef32866f1b47aa7af24256286890d5b328c402 /Src/utils.c
parentf0f5b514376db58205d45a1488c312e379104da4 (diff)
downloadzsh-927db585492cd7fada08aef799fb0025d345ca7e.tar.gz
zsh-927db585492cd7fada08aef799fb0025d345ca7e.tar.xz
zsh-927db585492cd7fada08aef799fb0025d345ca7e.zip
zsh-workers/9904
Diffstat (limited to 'Src/utils.c')
-rw-r--r--Src/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/utils.c b/Src/utils.c
index 9b0d2cd40..6d91200a0 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -1318,7 +1318,7 @@ noquery(int purge)
 #ifdef FIONREAD
     ioctl(SHTTY, FIONREAD, (char *)&val);
     if (purge) {
-	while(val--)
+	for (; val; val--)
 	    read(SHTTY, &c, 1);
     }
 #endif