summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;
}