]> git.sesse.net Git - vlc/commitdiff
Do not set never used value
authorRémi Denis-Courmont <rem@videolan.org>
Wed, 19 Sep 2007 18:54:53 +0000 (18:54 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Wed, 19 Sep 2007 18:54:53 +0000 (18:54 +0000)
src/text/wincp.c

index dac055c5349fe345e4df338ed64419f92585337d..4b48c9f708a1a4ef54a81d41dc16e36dd64bc2b7 100644 (file)
@@ -191,14 +191,14 @@ static const char *FindFallbackEncoding (const char *locale)
 const char *GetFallbackEncoding( void )
 {
 #ifndef WIN32
-    const char *psz_lang = NULL;
+    const char *psz_lang;
 
     /* Some systems (like Darwin, SunOS 4 or DJGPP) have only the C locale.
      * Therefore we don't use setlocale here; it would return "C". */
 #  if defined (HAVE_SETLOCALE) && !defined ( __APPLE__)
     psz_lang = setlocale (LC_ALL, NULL);
-#  endif
     if (psz_lang == NULL)
+#  endif
     {
         psz_lang = getenv ("LC_ALL");
         if ((psz_lang == NULL) || !*psz_lang)