aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2016-07-26 15:42:04 +0200
committerCorinna Vinschen <corinna@vinschen.de>2016-08-12 21:50:10 +0200
commit8207fe25ececf840c942bfa9bc7e611051e540bb (patch)
tree871eaf2fb93fba546cbc0642703933632dcd1329
parentef78a58a24501dc82083c83ad53f3e5d3504df56 (diff)
downloadnewlib-8207fe25ececf840c942bfa9bc7e611051e540bb.zip
newlib-8207fe25ececf840c942bfa9bc7e611051e540bb.tar.gz
newlib-8207fe25ececf840c942bfa9bc7e611051e540bb.tar.bz2
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...
-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 07abcb4..e1ed8b4 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, \