X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmultibyte%2Fmbsinit.c;h=c0e7e494232a91802c0430e391bc128dd9ce4d6d;hb=6436b371af2b52a7b60a5b4f304d1aca2f9f60b3;hp=d307e5a719e99b8a6c3e86b23050697e5673806e;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl 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; }