summaryrefslogtreecommitdiffstats
path: root/newlib/libc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2016-08-16 13:54:32 +0200
committerCorinna Vinschen <corinna@vinschen.de>2016-08-16 13:54:32 +0200
commit7ef90f7f9d71463caddaeb2ee7f42b3f06bc138a (patch)
tree8d7cf89e41f30164a688bce65983a4e311b36783 /newlib/libc
parent7964ad15c17a477380e29cb9c275fa9f27682e53 (diff)
downloadcygnal-7ef90f7f9d71463caddaeb2ee7f42b3f06bc138a.tar.gz
cygnal-7ef90f7f9d71463caddaeb2ee7f42b3f06bc138a.tar.bz2
cygnal-7ef90f7f9d71463caddaeb2ee7f42b3f06bc138a.zip
__localeconv_l: Always define locale variable lconv
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
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);