mirror of git://sourceware.org/git/glibc.git
Fix constness error just introduced in findlocale.
for ChangeLog [BZ #15969] * locale/findlocale.c (_nl_find_locale): Fix constness error in the previous change.
This commit is contained in:
parent
0d822a016b
commit
23d43090e0
|
@ -1,5 +1,9 @@
|
||||||
2015-02-26 Alexandre Oliva <aoliva@redhat.com>
|
2015-02-26 Alexandre Oliva <aoliva@redhat.com>
|
||||||
|
|
||||||
|
[BZ #15969]
|
||||||
|
* locale/findlocale.c (_nl_find_locale): Fix constness error in
|
||||||
|
the previous change.
|
||||||
|
|
||||||
[BZ #15969]
|
[BZ #15969]
|
||||||
* locale/findlocale.c (_nl_find_locale): Retry archive search
|
* locale/findlocale.c (_nl_find_locale): Retry archive search
|
||||||
after alias expansion.
|
after alias expansion.
|
||||||
|
|
|
@ -161,7 +161,8 @@ _nl_find_locale (const char *locale_path, size_t locale_path_len,
|
||||||
loc_name = (char *) _nl_expand_alias (*name);
|
loc_name = (char *) _nl_expand_alias (*name);
|
||||||
if (loc_name != NULL)
|
if (loc_name != NULL)
|
||||||
{
|
{
|
||||||
data = _nl_load_locale_from_archive (category, &loc_name);
|
data = _nl_load_locale_from_archive (category,
|
||||||
|
(const char **) &loc_name);
|
||||||
if (__builtin_expect (data != NULL, 1))
|
if (__builtin_expect (data != NULL, 1))
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue