commit: 76007ed6b28a5bc8c9b108bdf141fd31357fde6c
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 29 13:46:37 2021 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Thu Apr 29 13:46:37 2021 +0000
URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=76007ed6
tree: avoid crash at close when a binpkg is skipped
this fixes up the previous commit 09b8177
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
libq/tree.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libq/tree.c b/libq/tree.c
index 04bf468..e692ee9 100644
--- a/libq/tree.c
+++ b/libq/tree.c
@@ -1383,6 +1383,7 @@ tree_foreach_packages(tree_ctx *ctx, tree_pkg_cb
callback, void *priv)
p++;
len--;
}
+ ctx->pkgs = c;
continue;
}
cat->pkg_ctxs = (tree_pkg_ctx **)atom;
/* for name */