]> git.sesse.net Git - vlc/commitdiff
You shall not pass NULL to IsUTF8().
authorRémi Denis-Courmont <rem@videolan.org>
Sun, 3 Sep 2006 15:01:52 +0000 (15:01 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Sun, 3 Sep 2006 15:01:52 +0000 (15:01 +0000)
src/misc/unicode.c

index e5db5797c139501969afc70938dbf67090c54b0c..3e90cbb5daa8b799571393dc2ace8e7d5629d3f6 100644 (file)
@@ -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' )
     {