about summary refs log tree commit diff
path: root/src/multibyte
diff options
context:
space:
mode:
Diffstat (limited to 'src/multibyte')
-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;
 }