aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2019-05-04 19:23:12 +0200
committerFabian Groffen <grobian@gentoo.org>2019-05-04 19:23:12 +0200
commita6ca96154d2429bdc840454bdfa9fcb42c0e49a8 (patch)
tree833399a915e292eeb8e20104cd95846cadedef58
parentlibq/cache: probably fix crash from bug #684252#c22 (diff)
downloadportage-utils-a6ca9615.tar.gz
portage-utils-a6ca9615.tar.bz2
portage-utils-a6ca9615.zip
qkeyword: use combined set of arches found on all overlays
Bug: https://bugs.gentoo.org/684252 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
-rw-r--r--qkeyword.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/qkeyword.c b/qkeyword.c
index 8c781db..ffcd6ae 100644
--- a/qkeyword.c
+++ b/qkeyword.c
@@ -677,9 +677,6 @@ qkeyword_load_arches(const char *overlay)
if (!fp)
goto done;
- clear_set(archs);
- archlist_count = 0;
- arch_longest_len = 0;
buf = NULL;
while ((linelen = getline(&buf, &buflen, fp)) >= 0) {
rmspace_len(buf, (size_t)linelen);
@@ -798,6 +795,9 @@ int qkeyword_main(int argc, char **argv)
}
archs = create_set();
+ archlist_count = 0;
+ arch_longest_len = 0;
+
data.lastatom = NULL;
data.keywordsbuf = NULL;
data.keywordsbuflen = 0;