diff options
Diffstat (limited to 'libc/stdio/_READ.c')
-rw-r--r-- | libc/stdio/_READ.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/stdio/_READ.c b/libc/stdio/_READ.c index 02601c090..a548dbb3f 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)); |