diff options
author | theraven <theraven@FreeBSD.org> | 2015-04-24 10:21:20 +0000 |
---|---|---|
committer | theraven <theraven@FreeBSD.org> | 2015-04-24 10:21:20 +0000 |
commit | b4f9c4540d0b85c6bb35e6feb7bbde82d86b5bff (patch) | |
tree | d161981c2f7d2ecf34d5f01cf249365d0589595f /lib/libc | |
parent | 8d131b2bfd58e4409ec62b2d2148079afdf76b21 (diff) | |
download | FreeBSD-src-b4f9c4540d0b85c6bb35e6feb7bbde82d86b5bff.zip FreeBSD-src-b4f9c4540d0b85c6bb35e6feb7bbde82d86b5bff.tar.gz |
__xlocale_C_ctype should not be const. It contains a reference count that is modified by newlocale / duplocale / freelocale.
MFC after: 1 week
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/locale/none.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/locale/none.c b/lib/libc/locale/none.c index 75adffa..cacfd73 100644 --- a/lib/libc/locale/none.c +++ b/lib/libc/locale/none.c @@ -209,7 +209,7 @@ struct xlocale_ctype __xlocale_global_ctype = { 256 /* __mb_sb_limit */ }; -const struct xlocale_ctype __xlocale_C_ctype = { +struct xlocale_ctype __xlocale_C_ctype = { {{0}, "C"}, (_RuneLocale*)&_DefaultRuneLocale, _none_mbrtowc, |