From: Christophe Massiot Date: Thu, 4 Aug 2005 19:05:21 +0000 (+0000) Subject: * src/libvlc.c: Fixed segfault introduced in #12010 when current_charset is X-Git-Tag: 0.8.4~1014 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=329ae64cd7452b7fc79e77b889fb5621b025f20a;p=vlc * src/libvlc.c: Fixed segfault introduced in #12010 when current_charset is UTF-8. --- diff --git a/src/libvlc.c b/src/libvlc.c index 770a2889b7..9b717c9765 100644 --- a/src/libvlc.c +++ b/src/libvlc.c @@ -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 */