summaryrefslogtreecommitdiff
path: root/libc/stdio/_READ.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdio/_READ.c')
-rw-r--r--libc/stdio/_READ.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/stdio/_READ.c b/libc/stdio/_READ.c
index 02601c0..a548dbb 100644
--- a/libc/stdio/_READ.c
+++ b/libc/stdio/_READ.c
@@ -27,7 +27,7 @@ size_t attribute_hidden __stdio_READ(register FILE *stream,
ssize_t rv = 0;
__STDIO_STREAM_VALIDATE(stream);
- assert(stream->__filedes >= -1);
+ assert(stream->__filedes >= -2);
assert(__STDIO_STREAM_IS_READING(stream));
assert(!__STDIO_STREAM_BUFFER_RAVAIL(stream)); /* Buffer must be empty. */
assert(!(stream->__modeflags & __FLAG_UNGOT));