From f5a8277232519ae2ec0e0a212d2717a515c631ff Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 25 Aug 2006 00:39:53 +0000 Subject: * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't do anything. --- locale/programs/ld-ctype.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'locale/programs') diff --git a/locale/programs/ld-ctype.c b/locale/programs/ld-ctype.c index f38231f..0ffda62 100644 --- a/locale/programs/ld-ctype.c +++ b/locale/programs/ld-ctype.c @@ -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) -- cgit v1.1