From 70148c8ae939bcf58545c98ec6228be6755a5566 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Tue, 29 Aug 2006 17:49:47 +0000 Subject: - Fix endless loop on 0 length files --- lib/rlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rlib.c') diff --git a/lib/rlib.c b/lib/rlib.c index 38e8268..5b308d3 100644 --- a/lib/rlib.c +++ b/lib/rlib.c @@ -134,7 +134,7 @@ int rlibRun(r_stream* stream, r_script* script, int done) /* Need some data to work with */ if(!stream->nextIn || !stream->availIn) - RETURN(R_IN); + RETURN(done ? R_DONE : R_IN); stream->total = 0; -- cgit v1.2.3