mirror of
git://sourceware.org/git/glibc.git
synced 2025-04-18 14:30:43 +08:00
2007-03-15 Jakub Jelinek <jakub@redhat.com>
* locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is NULL.
This commit is contained in:
parent
2451ca4c5f
commit
e64da3e7d9
@ -1,3 +1,8 @@
|
||||
2007-03-15 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
|
||||
NULL.
|
||||
|
||||
2007-03-15 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
[BZ #4181]
|
||||
|
@ -1866,6 +1866,9 @@ find_translit (struct localedef_t *locale, const struct charmap_t *charmap,
|
||||
assert (locale != NULL);
|
||||
ctype = locale->categories[LC_CTYPE].ctype;
|
||||
|
||||
if (ctype == NULL)
|
||||
return NULL;
|
||||
|
||||
if (ctype->translit != NULL)
|
||||
result = find_translit2 (ctype, charmap, wch);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user