]> git.sesse.net Git - vlc/commitdiff
* src/libvlc.c: Fixed segfault introduced in #12010 when current_charset is
authorChristophe Massiot <massiot@videolan.org>
Thu, 4 Aug 2005 19:05:21 +0000 (19:05 +0000)
committerChristophe Massiot <massiot@videolan.org>
Thu, 4 Aug 2005 19:05:21 +0000 (19:05 +0000)
   UTF-8.

src/libvlc.c

index 770a2889b793044f679ca8d9eb58aece385cba20..9b717c976546b12edff9391a8ea5cfdecfba2053 100644 (file)
@@ -201,6 +201,10 @@ int VLC_Create( void )
             libvlc.from_locale = vlc_iconv_open( "UTF-8", psz_env );
             libvlc.to_locale = vlc_iconv_open( psz_env, "UTF-8" );
         }
+        else
+        {
+            libvlc.from_locale = libvlc.to_locale = (vlc_iconv_t)-1;
+        }
         free( psz_env );
 
         /* Initialize message queue */