aboutsummaryrefslogtreecommitdiff
path: root/locale/findlocale.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-08-27 18:45:00 +0000
committerUlrich Drepper <drepper@redhat.com>2000-08-27 18:45:00 +0000
commit4944d5d63f26970c9a65965f907e49d30bf53ca6 (patch)
treefeed0f263659675bf76f40d3fd1a9dbdfc19a3cd /locale/findlocale.c
parentb4f48b41b478c9344ab81bfb82785b5736e6aafc (diff)
downloadglibc-4944d5d63f26970c9a65965f907e49d30bf53ca6.tar
glibc-4944d5d63f26970c9a65965f907e49d30bf53ca6.tar.gz
glibc-4944d5d63f26970c9a65965f907e49d30bf53ca6.tar.bz2
glibc-4944d5d63f26970c9a65965f907e49d30bf53ca6.zip
Update.
* intl/dcigettext.c (DCIGETTEXT): Remove _nl_find_language in code to determine invalid locale name. * locale/findlocale.c (_nl_find_locale): Likewise.
Diffstat (limited to 'locale/findlocale.c')
-rw-r--r--locale/findlocale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/locale/findlocale.c b/locale/findlocale.c
index 275f7fc72e..c6adba84fa 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 (__builtin_expect (strcmp (*name, _nl_C_name), 1) == 0