]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
2007-03-15 Jakub Jelinek <jakub@redhat.com>
authorJakub Jelinek <jakub@redhat.com>
Thu, 12 Jul 2007 15:03:54 +0000 (15:03 +0000)
committerJakub Jelinek <jakub@redhat.com>
Thu, 12 Jul 2007 15:03:54 +0000 (15:03 +0000)
* locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
NULL.

ChangeLog
locale/programs/ld-ctype.c

index a963613aecee8a742bac3e91b1cdbc650a20742d..619cf5e3bfa54fe6a20349a3327253b4e230bea3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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]
index ca1ec7995aed4ade770f96b5fa4921bfbcf721fa..572f7d1c9e2a257b36ecb8b2defe5583bbdc1811 100644 (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);