about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-08-27 19:00:32 +0000
committerUlrich Drepper <drepper@redhat.com>2000-08-27 19:00:32 +0000
commit5489eab39535d798134bb29063daf6ce159902ab (patch)
tree8ecb04684aa73e9f67d7c9c96097a0e9a9d81cdd
parentf26037b35851e0079f31413beaa9d868c4be215a (diff)
downloadglibc-5489eab39535d798134bb29063daf6ce159902ab.tar.gz
glibc-5489eab39535d798134bb29063daf6ce159902ab.tar.xz
glibc-5489eab39535d798134bb29063daf6ce159902ab.zip
(_nl_find_locale): Fix typo in last change.
-rw-r--r--locale/findlocale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/locale/findlocale.c b/locale/findlocale.c
index 6dc734da44..abe5b91a89 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, '/', *name) != NULL))
+	  && strchr (*name, '/') != NULL))
     *name = (char *) _nl_C_name;
 
   if (strcmp (*name, _nl_C_name) == 0 || strcmp (*name, _nl_POSIX_name) == 0)