]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
intl: fix the C locale selection
authorJaroslav Kysela <perex@perex.cz>
Mon, 22 Jun 2015 06:39:27 +0000 (08:39 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 22 Jun 2015 06:39:27 +0000 (08:39 +0200)
src/tvh_locale.c

index 87b4035ba98b5c1df2854e60847b87031cb1e775..0500c7d23c0179e432888bd5359c2c3021b32ad1 100644 (file)
@@ -103,7 +103,7 @@ static void tvh_gettext_new_lang(const char *lang)
     
   tvh_gettext_last_lang = NULL;
   tvh_gettext_last_strings = NULL;
-  for (i = 0, l = tvh_locales; i < ARRAY_SIZE(tvh_locales); i++)
+  for (i = 0, l = tvh_locales; i < ARRAY_SIZE(tvh_locales); i++, l++)
     if (strcmp(lang, l->lang) == 0) {
       tvh_gettext_last_lang = l->lang;
       tvh_gettext_last_strings = l->strings;