This is the mail archive of the newlib-cvs@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[newlib-cygwin] __localeconv_l: Always define locale variable lconv


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=7ef90f7f9d71463caddaeb2ee7f42b3f06bc138a

commit 7ef90f7f9d71463caddaeb2ee7f42b3f06bc138a
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Tue Aug 16 13:54:32 2016 +0200

    __localeconv_l: Always define locale variable lconv
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 newlib/libc/locale/localeconv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/newlib/libc/locale/localeconv.c b/newlib/libc/locale/localeconv.c
index 623181c..1f8816d 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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]