arrfab / rpms / glibc

Forked from rpms/glibc 4 years ago
Clone

Blame SOURCES/glibc-rh971416-2.patch

147e83
commit 23d43090e0b275e47e09e859823e965a1eb323dc
147e83
Author: Alexandre Oliva <aoliva@redhat.com>
147e83
Date:   Thu Feb 26 02:46:02 2015 -0300
147e83
147e83
    Fix constness error just introduced in findlocale.
147e83
    
147e83
    for  ChangeLog
147e83
    
147e83
    	[BZ #15969]
147e83
    	* locale/findlocale.c (_nl_find_locale): Fix constness error in
147e83
    	the previous change.
147e83
147e83
diff --git a/locale/findlocale.c b/locale/findlocale.c
147e83
index 360f58b..5e2639b 100644
147e83
--- a/locale/findlocale.c
147e83
+++ b/locale/findlocale.c
147e83
@@ -161,7 +161,8 @@ _nl_find_locale (const char *locale_path, size_t locale_path_len,
147e83
       loc_name = (char *) _nl_expand_alias (*name);
147e83
       if (loc_name != NULL)
147e83
 	{
147e83
-	  data = _nl_load_locale_from_archive (category, &loc_name);
147e83
+	  data = _nl_load_locale_from_archive (category,
147e83
+					       (const char **) &loc_name);
147e83
 	  if (__builtin_expect (data != NULL, 1))
147e83
 	    return data;
147e83
 	}