forked from ariadne/pkgconf
libpkgconf: Fix issue when sysroot is '/'
If sysroot is /, simply do nothing. This fixes #146feature/tap-sh
parent
4e50938e78
commit
6985a179c1
|
@ -292,6 +292,7 @@ pkgconf_tuple_parse(const pkgconf_client_t *client, pkgconf_list_t *vars, const
|
|||
*/
|
||||
if (*buf == '/' &&
|
||||
client->sysroot_dir != NULL &&
|
||||
strcmp(client->sysroot_dir, "/") != 0 &&
|
||||
strlen(buf) > strlen(client->sysroot_dir) &&
|
||||
strstr(buf + strlen(client->sysroot_dir), client->sysroot_dir) != NULL)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue