- clear langcache if the default language changes
authorMichael Schroeder <mls@suse.de>
Tue, 7 Feb 2012 10:52:05 +0000 (11:52 +0100)
committerMichael Schroeder <mls@suse.de>
Tue, 7 Feb 2012 10:52:05 +0000 (11:52 +0100)
ext/repo_susetags.c

index 6395425..9a8fc6f 100644 (file)
@@ -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;