summaryrefslogtreecommitdiff
path: root/lib/rlib.c
diff options
context:
space:
mode:
authorStef Walter <stef@thewalter.net>2006-08-29 17:49:47 +0000
committerStef Walter <stef@thewalter.net>2006-08-29 17:49:47 +0000
commit70148c8ae939bcf58545c98ec6228be6755a5566 (patch)
tree3c23cf25ad35d03b765e8a54d87d16bf3f6d42b5 /lib/rlib.c
parent686ba4ee4b645d27c2d9db568c2f326acb05bc25 (diff)
- Fix endless loop on 0 length files
Diffstat (limited to 'lib/rlib.c')
-rw-r--r--lib/rlib.c2
1 files changed, 1 insertions, 1 deletions
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;