(ctype_read): If CTYPE is NULL, don't do anything.
authordrepper <drepper>
Fri, 25 Aug 2006 00:38:54 +0000 (00:38 +0000)
committerdrepper <drepper>
Fri, 25 Aug 2006 00:38:54 +0000 (00:38 +0000)
locale/programs/ld-ctype.c

index f38231f..0ffda62 100644 (file)
@@ -2256,6 +2256,8 @@ ctype_read (struct linereader *ldfile, struct localedef_t *result,
   /* Prepare the data structures.  */
   ctype_startup (ldfile, result, charmap, copy_locale, ignore_content);
   ctype = result->categories[LC_CTYPE].ctype;
+  if (ctype == NULL)
+    return;
 
   /* Remember the repertoire we use.  */
   if (!ignore_content)