summaryrefslogtreecommitdiff
path: root/src/multibyte/mbrtowc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/multibyte/mbrtowc.c')
-rw-r--r--src/multibyte/mbrtowc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/multibyte/mbrtowc.c b/src/multibyte/mbrtowc.c
index ec323859..db803661 100644
--- a/src/multibyte/mbrtowc.c
+++ b/src/multibyte/mbrtowc.c
@@ -51,7 +51,7 @@ loop:
*(unsigned *)st = c;
return -2;
ilseq:
- *(unsigned *)st = FAILSTATE;
+ *(unsigned *)st = 0;
errno = EILSEQ;
return -1;
}