summaryrefslogtreecommitdiffstats
path: root/runtime/stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/stream.c')
-rw-r--r--runtime/stream.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/stream.c b/runtime/stream.c
index 3f42953e..53039056 100644
--- a/runtime/stream.c
+++ b/runtime/stream.c
@@ -603,6 +603,8 @@ strmReadBuf(strm_t *pThis, int *padBytes)
iLenRead = actualDataLen;
DBGOPRINT((obj_t*) pThis, "encrypted file %d pad bytes %d, actual "
"data %ld\n", pThis->fd, *padBytes, iLenRead);
+ } else {
+ *padBytes = 0;
}
pThis->iBufPtrMax = iLenRead;
bRun = 0; /* exit loop */