diff options
Diffstat (limited to 'sysdeps/posix/preadv.c')
-rw-r--r-- | sysdeps/posix/preadv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/posix/preadv.c b/sysdeps/posix/preadv.c index e697604c19..3d975226cf 100644 --- a/sysdeps/posix/preadv.c +++ b/sysdeps/posix/preadv.c @@ -83,7 +83,7 @@ PREADV (int fd, const struct iovec *vector, int count, OFF_T offset) /* Read the data. */ ssize_t bytes_read = PREAD (fd, buffer, bytes, offset); - if (bytes_read <= 0) + if (bytes_read < 0) return -1; /* Copy the data from BUFFER into the memory specified by VECTOR. */ |