Skip to content

Commit

Permalink
Merge pull request #18 from SolalPirelli/fix_no_buffers
Browse files Browse the repository at this point in the history
Fix compilation when __STDIO_HAS_OPENLIST is undefined
  • Loading branch information
MartinNowack authored Mar 13, 2019
2 parents 7b7cf9d + ca1d5d7 commit 6c845ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libc/stdio/_scanf.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,9 @@ int vsscanf(__const char *sp, __const char *fmt, va_list ap)
f.f.__user_locking = 1; /* Set user locking. */
__stdio_init_mutex(&f.f.__lock);
#endif
#ifdef __STDIO_HAS_OPENLIST
f.f.__nextopen = NULL;
#endif

return vfscanf(&f.f, fmt, ap);
}
Expand Down
2 changes: 2 additions & 0 deletions libc/stdio/vdprintf.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ int vdprintf(int filedes, const char * __restrict format, va_list arg)
f.__user_locking = 1; /* Set user locking. */
__stdio_init_mutex(&f.__lock);
#endif
#ifdef __STDIO_HAS_OPENLIST
f.__nextopen = NULL;
#endif

rv = vfprintf(&f, format, arg);

Expand Down

0 comments on commit 6c845ee

Please sign in to comment.