diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2016-08-16 17:22:12 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2016-08-16 17:22:12 +0300 |
commit | 625a8a3f62b0f7d496fc4bdf71d742ac122eda45 (patch) | |
tree | 4fafd4f47912f32243223d4cb56616147f7d2d67 /newlib/libc/locale | |
parent | 042263cd830830144b8a452dde5a15b3573cf01e (diff) |
Always fall back to __ctype_ptr__ in isXXX_l functions.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'newlib/libc/locale')
-rw-r--r-- | newlib/libc/locale/locale.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/newlib/libc/locale/locale.c b/newlib/libc/locale/locale.c index c1970f9a6..795e163e0 100644 --- a/newlib/libc/locale/locale.c +++ b/newlib/libc/locale/locale.c @@ -995,7 +995,8 @@ _DEFUN_VOID (__locale_ctype_ptr) char * __locale_ctype_ptr_l (struct __locale_t *locale) { - return locale->ctype_ptr; + extern char *__ctype_ptr__; + return locale->ctype_ptr ?: __ctype_ptr__; } #ifndef _REENT_ONLY |