diff options
Diffstat (limited to 'src/libc/stdio')
-rw-r--r-- | src/libc/stdio/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libc/stdio/file.c b/src/libc/stdio/file.c index 30a578e..d8b7d5a 100644 --- a/src/libc/stdio/file.c +++ b/src/libc/stdio/file.c @@ -10,8 +10,8 @@ #include <unistd.h> static FILE _stdin_null = { .fd = STDIN_FILENO }; -static FILE _stdout_null = { .fd = STDOUT_FILENO }; -static FILE _stderr_null = { .fd = STDERR_FILENO }; +static FILE _stdout_null = { .fd = STDOUT_FILENO, .pos = -1 }; +static FILE _stderr_null = { .fd = STDERR_FILENO, .pos = -1 }; FILE *const stdin = &_stdin_null; FILE *const stdout = &_stdout_null; FILE *const stderr = &_stderr_null; |