Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage-utils:master commit in: libq/
Date: Sun, 19 Jan 2020 10:05:05
Message-Id: 1579428279.275298ccf4c33cfe6cc4a816afd8ef15dce6d59f.grobian@gentoo
1 commit: 275298ccf4c33cfe6cc4a816afd8ef15dce6d59f
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 19 10:04:39 2020 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 19 10:04:39 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=275298cc
7
8 libq/tree: fix initialisation in tree_open_cat
9
10 Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
11
12 libq/tree.c | 2 ++
13 1 file changed, 2 insertions(+)
14
15 diff --git a/libq/tree.c b/libq/tree.c
16 index f87e751..1802d79 100644
17 --- a/libq/tree.c
18 +++ b/libq/tree.c
19 @@ -262,6 +262,8 @@ tree_open_cat(tree_ctx *ctx, const char *name)
20 cat_ctx->dir = dir;
21 cat_ctx->ctx = ctx;
22 cat_ctx->pkg_ctxs = NULL;
23 + cat_ctx->pkg_cur = 0;
24 + cat_ctx->pkg_cnt = 0;
25
26 if (ctx->cache.categories != NULL) {
27 add_set_value(name, cat_ctx, ctx->cache.categories);