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:
Jakub Jelinek 2007-07-12 15:03:54 +00:00
parent 2451ca4c5f
commit e64da3e7d9
2 changed files with 8 additions and 0 deletions

View File

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

View File

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