Fix regression introduced in 7b39c38

now pkgconf --variable=pc_path pkg-config works
pull/109/head
Baptiste Daroussin 2017-01-22 10:44:09 +01:00
parent f540ece217
commit 7d89f659ff
1 changed files with 1 additions and 1 deletions

View File

@ -1341,7 +1341,7 @@ pkgconf_pkg_traverse(pkgconf_client_t *client,
if (maxdepth == 0)
return eflags;
if ((root->flags & PKGCONF_PKG_PROPF_VIRTUAL) != PKGCONF_PKG_PROPF_VIRTUAL || (client->flags & PKGCONF_PKG_PKGF_SKIP_ROOT_VIRTUAL) != PKGCONF_PKG_PKGF_SKIP_ROOT_VIRTUAL)
if ((root->flags & PKGCONF_PKG_PROPF_VIRTUAL) != PKGCONF_PKG_PROPF_VIRTUAL || (client->flags & ~PKGCONF_PKG_PKGF_SKIP_ROOT_VIRTUAL) != PKGCONF_PKG_PKGF_SKIP_ROOT_VIRTUAL)
{
if (func != NULL)
func(client, root, data);