forked from ariadne/pkgconf
libpkgconf: path: fix logic error in path relocation case when matching against a list (closes #129)
parent
9505213c1b
commit
a6d6b88d14
|
@ -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