diff options
-rw-r--r-- | src/archive.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/archive.c b/src/archive.c index 4005bf1..68ec287 100644 --- a/src/archive.c +++ b/src/archive.c @@ -90,6 +90,9 @@ static ssize_t tar_entry_read(void *stream, void *ptr, size_t size) if (size > teis->bytes_left) size = teis->bytes_left; + if (size == 0) + return 0; + r = teis->tar_is->read(teis->tar_is, ptr, size); if (r < 0) return r; |