diff options
Diffstat (limited to 'wcsmbs/mbsinit.c')
-rw-r--r-- | wcsmbs/mbsinit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wcsmbs/mbsinit.c b/wcsmbs/mbsinit.c index d9f01256d5..efbfd09347 100644 --- a/wcsmbs/mbsinit.c +++ b/wcsmbs/mbsinit.c @@ -17,6 +17,7 @@ License along with the GNU C Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include <string.h> #include <wchar.h> @@ -29,5 +30,5 @@ mbsinit (ps) |* character handling is not finished this will do. *| \*************************************************************/ - return *ps == 0; + return ps == NULL || *ps == 0; } |