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/mbsinit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/multibyte/mbsinit.c b/src/multibyte/mbsinit.c
index d307e5a7..c0e7e494 100644
--- a/src/multibyte/mbsinit.c
+++ b/src/multibyte/mbsinit.c
@@ -13,5 +13,5 @@
 
 int mbsinit(const mbstate_t *st)
 {
-	return !*(unsigned *)st;
+	return !st || !*(unsigned *)st;
 }