tuple: fall back to using globals rather than preferring them

pull/241/head
Ariadne Conill 2022-06-26 19:15:07 +00:00
parent bc272e4e9f
commit d68a867dc0
1 changed files with 1 additions and 5 deletions

View File

@ -218,10 +218,6 @@ char *
pkgconf_tuple_find(const pkgconf_client_t *client, pkgconf_list_t *list, const char *key) pkgconf_tuple_find(const pkgconf_client_t *client, pkgconf_list_t *list, const char *key)
{ {
pkgconf_node_t *node; pkgconf_node_t *node;
char *res;
if ((res = pkgconf_tuple_find_global(client, key)) != NULL)
return res;
PKGCONF_FOREACH_LIST_ENTRY(list->head, node) PKGCONF_FOREACH_LIST_ENTRY(list->head, node)
{ {
@ -231,7 +227,7 @@ pkgconf_tuple_find(const pkgconf_client_t *client, pkgconf_list_t *list, const c
return tuple->value; return tuple->value;
} }
return NULL; return pkgconf_tuple_find_global(client, key);
} }
/* /*