diff options
Diffstat (limited to 'userland/libc/stdio/fopen.c')
-rw-r--r-- | userland/libc/stdio/fopen.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/userland/libc/stdio/fopen.c b/userland/libc/stdio/fopen.c index a29c7ef..6a3f374 100644 --- a/userland/libc/stdio/fopen.c +++ b/userland/libc/stdio/fopen.c @@ -1,7 +1,7 @@ #include <fcntl.h> -#include <sys/stat.h> #include <stdint.h> #include <stdio.h> +#include <sys/stat.h> // FIXME: All modes not implemented // https://pubs.opengroup.org/onlinepubs/9699919799/functions/fopen.html @@ -53,5 +53,7 @@ FILE *fopen(const char *pathname, const char *mode) { r->file_size = s.st_size; r->cookie = NULL; r->fd = fd; + r->read_buffer = NULL; + r->read_buffer_stored = 0; return r; } |