From 659f4ca91625f5b2331fc8797a8ec62ea728589d Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 26 Jul 2016 15:42:04 +0200 Subject: [PATCH] Fix _REENT_INIT initialization of _locale Initializing a pointer to struct __locale_t to point to a string "C" is not such a bright idea in the long run... Signed-off by: Corinna Vinschen --- newlib/libc/include/sys/reent.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/newlib/libc/include/sys/reent.h b/newlib/libc/include/sys/reent.h index 07abcb428..e1ed8b421 100644 --- a/newlib/libc/include/sys/reent.h +++ b/newlib/libc/include/sys/reent.h @@ -386,7 +386,6 @@ struct _reent int __sdidinit; /* 1 means stdio has been init'd */ - /* TODO */ int _unspecified_locale_info; /* unused, reserved for locale stuff */ struct __locale_t *_locale;/* per-thread locale */ @@ -432,7 +431,7 @@ extern const struct __sFILE_fake __sf_fake_stderr; _NULL, \ 0, \ 0, \ - "C", \ + _NULL, \ _NULL, \ _NULL, \ 0, \ @@ -656,7 +655,7 @@ struct _reent 0, \ "", \ 0, \ - "C", \ + _NULL, \ 0, \ _NULL, \ _NULL, \ -- 2.43.5