summaryrefslogtreecommitdiffstats
path: root/newlib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc')
-rw-r--r--newlib/libc/locale/localeconv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/locale/localeconv.c b/newlib/libc/locale/localeconv.c
index 623181cf4..1f8816dfd 100644
--- a/newlib/libc/locale/localeconv.c
+++ b/newlib/libc/locale/localeconv.c
@@ -5,8 +5,8 @@
struct lconv *
__localeconv_l (struct __locale_t *locale)
{
-#ifdef __HAVE_LOCALE_INFO__
struct lconv *lconv = &locale->lconv;
+#ifdef __HAVE_LOCALE_INFO__
const struct lc_numeric_T *n = __get_numeric_locale (locale);
const struct lc_monetary_T *m = __get_monetary_locale (locale);