about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-08-26 11:36:04 +0000
committerRoland McGrath <roland@gnu.org>2002-08-26 11:36:04 +0000
commitd9cab009a1ef721e09aede79c0ec9442d9ffb72e (patch)
treec36771c7c2bf14a96faf6ed79f5af99aa2d4d372
parent26c91f01faeedc6152ac4c43454420ed221e5651 (diff)
downloadglibc-d9cab009a1ef721e09aede79c0ec9442d9ffb72e.tar.gz
glibc-d9cab009a1ef721e09aede79c0ec9442d9ffb72e.tar.xz
glibc-d9cab009a1ef721e09aede79c0ec9442d9ffb72e.zip
2002-08-26 Roland McGrath <roland@redhat.com>
	* locale/programs/ld-ctype.c (ctype_read): When given a repertoire
	name of "", store a null pointer instead.
-rw-r--r--locale/programs/ld-ctype.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/locale/programs/ld-ctype.c b/locale/programs/ld-ctype.c
index eed2e94732..2a2c831481 100644
--- a/locale/programs/ld-ctype.c
+++ b/locale/programs/ld-ctype.c
@@ -2796,6 +2796,9 @@ with character code range values one must use the absolute ellipsis `...'"));
 		      || now->val.str.startmb == NULL)
 		    goto translit_syntax;
 		  repertoire_name = now->val.str.startmb;
+		  if (repertoire_name[0] == '\0')
+		    /* Ignore the empty string.  */
+		    repertoire_name = NULL;
 
 		  /* Save the include statement for later processing.  */
 		  include_stmt = (struct translit_include_t *)