about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-08-27 18:46:56 +0000
committerUlrich Drepper <drepper@redhat.com>2000-08-27 18:46:56 +0000
commit79ee5330dedaa67b5251f864d2bf910692fc3aef (patch)
tree4a42b4dc8009beafd5b3aa542ca6f40ae45773ee
parent612a09d60490a939fece0d89925b1bafff5d0e79 (diff)
downloadglibc-79ee5330dedaa67b5251f864d2bf910692fc3aef.tar.gz
glibc-79ee5330dedaa67b5251f864d2bf910692fc3aef.tar.xz
glibc-79ee5330dedaa67b5251f864d2bf910692fc3aef.zip
(_nl_find_locale): Remove _nl_find_language in code to determine
invalid locale name.
-rw-r--r--locale/findlocale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/locale/findlocale.c b/locale/findlocale.c
index e6d229a4de..6dc734da44 100644
--- a/locale/findlocale.c
+++ b/locale/findlocale.c
@@ -67,7 +67,7 @@ _nl_find_locale (const char *locale_path, size_t locale_path_len,
 
   if (*name == NULL || (*name)[0] == '\0'
       || (__builtin_expect (__libc_enable_secure, 0)
-	  && memchr (*name, '/', _nl_find_language (*name) - *name) != NULL))
+	  && memchr (*name, '/', *name) != NULL))
     *name = (char *) _nl_C_name;
 
   if (strcmp (*name, _nl_C_name) == 0 || strcmp (*name, _nl_POSIX_name) == 0)