Always fall back to __ctype_ptr__ in isXXX_l functions.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2016-08-16 16:22:12 +02:00
parent 042263cd83
commit 625a8a3f62
1 changed files with 2 additions and 1 deletions

View File

@ -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