mirror of
https://gitlab.freedesktop.org/pkg-config/pkg-config.git
synced 2026-05-05 09:58:25 +02:00
Make sure recursion only happens with requires
The function recursive_fill_list() is designed to descend lists of packages, so it only makes sense to use with Requires and Requires.private. Ensure it to make later code additions simpler.
This commit is contained in:
parent
6b07296902
commit
02ca585fa6
1 changed files with 6 additions and 0 deletions
6
pkg.c
6
pkg.c
|
|
@ -574,6 +574,12 @@ recursive_fill_list (Package *pkg, GetListFunc func, GSList **listp)
|
||||||
{
|
{
|
||||||
GSList *tmp;
|
GSList *tmp;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This function should only be called to resolve Requires or
|
||||||
|
* Requires.private.
|
||||||
|
*/
|
||||||
|
g_assert (func == get_requires || func == get_requires_private);
|
||||||
|
|
||||||
fill_one_level (pkg, func, listp);
|
fill_one_level (pkg, func, listp);
|
||||||
|
|
||||||
tmp = (*func) (pkg);
|
tmp = (*func) (pkg);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue