aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2009-04-17 21:26:34 +0000
committerUlrich Drepper <drepper@redhat.com>2009-04-17 21:26:34 +0000
commit571ac26f69c319b84f8191b38e5307d0ddf6174c (patch)
treedb38226d5245e61d57661edca51fca2fc1e5c02e /sysdeps/posix/readv.c
parent* malloc/hooks.c (top_check): Force hook value into register. (diff)
downloadglibc-571ac26f69c319b84f8191b38e5307d0ddf6174c.tar.gz
glibc-571ac26f69c319b84f8191b38e5307d0ddf6174c.tar.bz2
glibc-571ac26f69c319b84f8191b38e5307d0ddf6174c.zip
* sysdeps/posix/preadv.c: Reading of zero bytes is no error.
* sysdeps/posix/readv.c: Likewise. Reported by Markus Armbruster <armbru@redhat.com>.
Diffstat (limited to 'sysdeps/posix/readv.c')
-rw-r--r--sysdeps/posix/readv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/posix/readv.c b/sysdeps/posix/readv.c
index 50bcc91315..6f16b9d946 100644
--- a/sysdeps/posix/readv.c
+++ b/sysdeps/posix/readv.c
@@ -70,7 +70,7 @@ __libc_readv (int fd, const struct iovec *vector, int count)
/* Read the data. */
ssize_t bytes_read = __read (fd, buffer, bytes);
- if (bytes_read <= 0)
+ if (bytes_read < 0)
return -1;
/* Copy the data from BUFFER into the memory specified by VECTOR. */