/* Test for initial conversion state.
- Copyright (C) 2008, 2009 Free Software Foundation, Inc.
+ Copyright (C) 2008-2011 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2008.
This program is free software: you can redistribute it and/or modify
{
const char *pstate = (const char *)ps;
- return pstate[0] == 0;
+ return pstate == NULL || pstate[0] == 0;
}