summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/locale/gb2312.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/locale/gb2312.c b/lib/libc/locale/gb2312.c
index 35b4863..70725d9 100644
--- a/lib/libc/locale/gb2312.c
+++ b/lib/libc/locale/gb2312.c
@@ -100,7 +100,7 @@ _GB2312_mbrtowc(wchar_t * __restrict pwc, const char * __restrict s, size_t n,
int i, len, ocount;
size_t ncopy;
- gs = (_GB2312State *)gs;
+ gs = (_GB2312State *)ps;
if (s == NULL) {
s = "";
OpenPOWER on IntegriCloud