]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(_nl_find_locale): Fix typo in last change.
authorUlrich Drepper <drepper@redhat.com>
Sun, 27 Aug 2000 19:00:32 +0000 (19:00 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 27 Aug 2000 19:00:32 +0000 (19:00 +0000)
locale/findlocale.c

index 6dc734da44bf4d69491c2d2e9a4ecb6426bd1c33..abe5b91a897ade25b1c2eb177d391336971b4b5e 100644 (file)
@@ -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)