vfs: check userland buffers before reading them.
[haiku.git] / src / system / libroot / posix / wchar / mbsinit.c
blobb2b86e9a20ca0c38cf05f9075c0e9291c5314dab
1 /*
2 ** Copyright 2011, Oliver Tappe, zooey@hirschkaefer.de. All rights reserved.
3 ** Distributed under the terms of the Haiku License.
4 */
6 #include <wchar_private.h>
9 int
10 __mbsinit(const mbstate_t* ps)
12 return ps == NULL || ps->count == 0;
16 B_DEFINE_WEAK_ALIAS(__mbsinit, mbsinit);