proj/portage-utils:master commit in: libq/
"Fabian Groffen" <[email protected]>
| Newsgroups | gmane.linux.gentoo.cvs |
|---|---|
| Message-ID | <1782304990.dee1b124148123e32941fb8a32a56f9406ff1712.grobian@gentoo> |
commit: dee1b124148123e32941fb8a32a56f9406ff1712
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 24 12:43:10 2026 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Wed Jun 24 12:43:10 2026 +0000
URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=dee1b124
libq/set: fix set_has_intersection
fix inner comparison loop
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
libq/set.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libq/set.c b/libq/set.c
index b77095a5..be3079bd 100644
--- a/libq/set.c
+++ b/libq/set.c
@@ -349,10 +349,12 @@ bool set_has_intersection
{
for (w1 = s->buckets[i]; w1 != NULL; w1 = w1->next)
{
- for (w2 = l->buckets[i]; w2 != NULL; w2 = w1->next)
+ for (w2 = l->buckets[i]; w2 != NULL; w2 = w2->next)
+ {
if (w1->hash == w2->hash &&
strcmp(w1->name, w2->name) == 0)
return true;
+ }
}
}