]> git.sesse.net Git - vlc/commitdiff
Fix segmentation fault
authorRémi Denis-Courmont <rem@videolan.org>
Thu, 27 Sep 2007 17:36:47 +0000 (17:36 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Thu, 27 Sep 2007 17:36:47 +0000 (17:36 +0000)
modules/control/http/util.c

index 5d2c4a0eddba24403a21f3711312e8daf9e8b475..03e4e3b5fcf04534a4260bbbb182c4562b560af4 100644 (file)
@@ -347,6 +347,9 @@ char *E_(FromUTF8)( intf_thread_t *p_intf, char *psz_utf8 )
 {
     intf_sys_t    *p_sys = p_intf->p_sys;
 
+    if( psz_utf8 == NULL )
+        return NULL;
+
     if ( p_sys->iconv_from_utf8 != (vlc_iconv_t)-1 )
     {
         size_t i_in = strlen(psz_utf8);