commit: 275298ccf4c33cfe6cc4a816afd8ef15dce6d59f Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> AuthorDate: Sun Jan 19 10:04:39 2020 +0000 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> CommitDate: Sun Jan 19 10:04:39 2020 +0000 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=275298cc
libq/tree: fix initialisation in tree_open_cat Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> libq/tree.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libq/tree.c b/libq/tree.c index f87e751..1802d79 100644 --- a/libq/tree.c +++ b/libq/tree.c @@ -262,6 +262,8 @@ tree_open_cat(tree_ctx *ctx, const char *name) cat_ctx->dir = dir; cat_ctx->ctx = ctx; cat_ctx->pkg_ctxs = NULL; + cat_ctx->pkg_cur = 0; + cat_ctx->pkg_cnt = 0; if (ctx->cache.categories != NULL) { add_set_value(name, cat_ctx, ctx->cache.categories);