- 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 6395425381df616a3a7e0d9591d3c52945d36bfa..9a8fc6fd2548d34e95eb1b9ce0c8076742320e92 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;