diff options
author | tjr <tjr@FreeBSD.org> | 2004-04-07 08:33:23 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2004-04-07 08:33:23 +0000 |
commit | c3bbcd6ef65ea72fcde434bb55ca4a100f825f7c (patch) | |
tree | 5e0fa14463fbf304b7f3c6822cccc06e94320560 /lib/libc/locale/wcstombs.c | |
parent | b174697b6954e33a6af1a1073586e48279f40161 (diff) | |
download | FreeBSD-src-c3bbcd6ef65ea72fcde434bb55ca4a100f825f7c.zip FreeBSD-src-c3bbcd6ef65ea72fcde434bb55ca4a100f825f7c.tar.gz |
Begin in the initial shift state in mbstowcs() and wcstombs().
(This change is non-functional since nothing uses states yet.)
Diffstat (limited to 'lib/libc/locale/wcstombs.c')
-rw-r--r-- | lib/libc/locale/wcstombs.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/locale/wcstombs.c b/lib/libc/locale/wcstombs.c index cc5fab4..79ee279 100644 --- a/lib/libc/locale/wcstombs.c +++ b/lib/libc/locale/wcstombs.c @@ -33,7 +33,9 @@ __FBSDID("$FreeBSD$"); size_t wcstombs(char * __restrict s, const wchar_t * __restrict pwcs, size_t n) { - static mbstate_t mbs; + static const mbstate_t initial; + mbstate_t mbs; + mbs = initial; return (wcsrtombs(s, &pwcs, n, &mbs)); } |