Commit 329ae64c authored by Christophe Massiot's avatar Christophe Massiot

* src/libvlc.c: Fixed segfault introduced in #12010 when current_charset is

   UTF-8.
parent b1be8713
......@@ -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 */
......
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