diff --git a/cmdline/stream.c b/cmdline/stream.c index 8cd32d9b..878d8db1 100644 --- a/cmdline/stream.c +++ b/cmdline/stream.c @@ -233,6 +233,7 @@ static int sfill(STREAM* s) /* if we reached the end, doesn't try to read */ if (s->offset >= s->size) { + s->state = STREAM_STATE_EOF; return EOF; }