From 5a82a259acf85dc15e0f0270d16839dae3b908a1 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Sun, 26 Jun 2022 15:17:08 +0000 Subject: [PATCH] queue: use maxdepth after flattening --- libpkgconf/queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libpkgconf/queue.c b/libpkgconf/queue.c index b3a9497..6576669 100644 --- a/libpkgconf/queue.c +++ b/libpkgconf/queue.c @@ -269,7 +269,7 @@ pkgconf_queue_apply(pkgconf_client_t *client, pkgconf_list_t *list, pkgconf_queu return false; /* the world dependency set is flattened after it is returned from pkgconf_queue_verify */ - if (!func(client, &world, data, 2)) + if (!func(client, &world, data, maxdepth)) { pkgconf_pkg_free(client, &world); return false;