olga / rpms / glibc

Forked from rpms/glibc 5 years ago
Clone

Blame SOURCES/glibc-rh971416-2.patch

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