summaryrefslogtreecommitdiff
path: root/send-stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'send-stream.c')
-rw-r--r--send-stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/send-stream.c b/send-stream.c
index 920c7420..5a028cd9 100644
--- a/send-stream.c
+++ b/send-stream.c
@@ -74,7 +74,7 @@ static int read_buf(struct btrfs_send_stream *sctx, char *buf, size_t len)
ret = 0;
out_eof:
- if (pos < len) {
+ if (0 < pos && pos < len) {
error("short read from stream: expected %zu read %zu", len, pos);
ret = -EIO;
} else {