diff options
Diffstat (limited to 'libc/stdio/findfp.c')
| -rw-r--r-- | libc/stdio/findfp.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libc/stdio/findfp.c b/libc/stdio/findfp.c index a659c87..76ed5ee 100644 --- a/libc/stdio/findfp.c +++ b/libc/stdio/findfp.c @@ -58,7 +58,12 @@ static struct glue uglue = { 0, FOPEN_MAX - 3, usual }; static struct glue *lastglue = &uglue; _THREAD_PRIVATE_MUTEX(__sfp_mutex); -static struct __sfileext __sFext[3]; +static struct __sfileext __sFext[3] = { + _FILEEXT_INITIALIZER, + _FILEEXT_INITIALIZER, + _FILEEXT_INITIALIZER, +}; + FILE __sF[3] = { std(__SRD, STDIN_FILENO), /* stdin */ std(__SWR, STDOUT_FILENO), /* stdout */ |
