Commit 4a3e1087 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

You shall not pass NULL to IsUTF8().

parent 91879fc7
......@@ -585,6 +585,8 @@ static char *CheckUTF8( char *str, char rep )
{
unsigned char *ptr, c;
assert (str != NULL);
ptr = (unsigned char *)str;
while( (c = *ptr) != '\0' )
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment