summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2016-07-26 15:42:04 +0200
committerCorinna Vinschen <corinna@vinschen.de>2016-08-15 10:56:58 +0200
commit659f4ca91625f5b2331fc8797a8ec62ea728589d (patch)
tree871eaf2fb93fba546cbc0642703933632dcd1329
parent18f6750b95911c4c7d1e92f977c3b7de99efc695 (diff)
downloadcygnal-659f4ca91625f5b2331fc8797a8ec62ea728589d.tar.gz
cygnal-659f4ca91625f5b2331fc8797a8ec62ea728589d.tar.bz2
cygnal-659f4ca91625f5b2331fc8797a8ec62ea728589d.zip
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 <corinna@vinschen.de>
-rw-r--r--newlib/libc/include/sys/reent.h5
1 files 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, \