提交 6436b371 编写于 作者: R Rich Felker

fix failure of mbsinit(0) (not UB; required to return nonzero)

issue reported by Richard Pennington; slightly simpler fix applied
上级 aefd0f69
......@@ -13,5 +13,5 @@
int mbsinit(const mbstate_t *st)
{
return !*(unsigned *)st;
return !st || !*(unsigned *)st;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册