From: Jaroslav Kysela Date: Mon, 22 Jun 2015 06:39:27 +0000 (+0200) Subject: intl: fix the C locale selection X-Git-Tag: v4.2.1~2279 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6f95cf5540f88789d3ddb2a79ef161ffc6d0ae2;p=thirdparty%2Ftvheadend.git intl: fix the C locale selection --- diff --git a/src/tvh_locale.c b/src/tvh_locale.c index 87b4035ba..0500c7d23 100644 --- a/src/tvh_locale.c +++ b/src/tvh_locale.c @@ -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;