libpkgconf: path: fix logic error in path relocation case when matching against a list (closes #129)

William Pitcock 2017-09-08 18:27:04 -05:00
parent 62a53765a6
commit 4fe96a8ccc
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{ {