summaryrefslogtreecommitdiff
path: root/libc/stdio/_WRITE.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdio/_WRITE.c')
-rw-r--r--libc/stdio/_WRITE.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/stdio/_WRITE.c b/libc/stdio/_WRITE.c
index 6af5da8e4..712236f8f 100644
--- a/libc/stdio/_WRITE.c
+++ b/libc/stdio/_WRITE.c
@@ -36,7 +36,7 @@ size_t attribute_hidden __stdio_WRITE(register FILE *stream,
ssize_t rv, stodo;
__STDIO_STREAM_VALIDATE(stream);
- assert(stream->__filedes >= -1);
+ assert(stream->__filedes >= -2);
assert(__STDIO_STREAM_IS_WRITING(stream));
assert(!__STDIO_STREAM_BUFFER_WUSED(stream)); /* Buffer must be empty. */