From: Michael Schroeder Date: Tue, 7 Feb 2012 10:52:05 +0000 (+0100) Subject: - clear langcache if the default language changes X-Git-Tag: BASE-SuSE-Code-12_2-Branch~176 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7943c641fc73cb4ef5948a012e47357ab62c3157;p=thirdparty%2Flibsolv.git - clear langcache if the default language changes --- diff --git a/ext/repo_susetags.c b/ext/repo_susetags.c index 63954253..9a8fc6fd 100644 --- a/ext/repo_susetags.c +++ b/ext/repo_susetags.c @@ -1107,6 +1107,7 @@ repo_add_susetags(Repo *repo, FILE *fp, Id defvendor, const char *language, int break; case CTAG('=', 'L', 'a', 'n'): pd.language = solv_free(pd.language); + memset(pd.langcache, 0, sizeof(pd.langcache)); if (line[6]) pd.language = solv_strdup(line + 6); break;