forked from ariadne/pkgconf
libpkgconf: path: fix logic error in path relocation case when matching against a list (closes #129)
parent
62a53765a6
commit
4fe96a8ccc
|
@ -205,7 +205,7 @@ pkgconf_path_match_list(const char *path, const pkgconf_list_t *dirlist)
|
||||||
|
|
||||||
pkgconf_strlcpy(relocated, path, sizeof relocated);
|
pkgconf_strlcpy(relocated, path, sizeof relocated);
|
||||||
if (pkgconf_path_relocate(relocated, sizeof relocated))
|
if (pkgconf_path_relocate(relocated, sizeof relocated))
|
||||||
cpath = path;
|
cpath = relocated;
|
||||||
|
|
||||||
PKGCONF_FOREACH_LIST_ENTRY(dirlist->head, n)
|
PKGCONF_FOREACH_LIST_ENTRY(dirlist->head, n)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue