diff options
Diffstat (limited to 'newlib/libc/stdio/local.h')
-rw-r--r-- | newlib/libc/stdio/local.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/newlib/libc/stdio/local.h b/newlib/libc/stdio/local.h index 1e132a5d5..f7093b697 100644 --- a/newlib/libc/stdio/local.h +++ b/newlib/libc/stdio/local.h @@ -49,11 +49,11 @@ extern int _EXFUN(__srefill,(FILE *fp)); /* Called by the main entry point fns to ensure stdio has been initialized. */ -#define CHECK_INIT(fp) \ +#define CHECK_INIT(ptr) \ do \ { \ - if (_REENT && !_REENT->__sdidinit) \ - __sinit (_REENT); \ + if ((ptr) && !(ptr)->__sdidinit) \ + __sinit (ptr); \ } \ while (0) |