From cb1dc71e235c846f8fbf3a135b0dcfc74612386a Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Fri, 13 Jan 2017 20:10:02 -0600 Subject: [PATCH] fragment: simplify pkgconf_fragment_copy_munged() --- libpkgconf/fragment.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/libpkgconf/fragment.c b/libpkgconf/fragment.c index 44ca0e2..c2f8a44 100644 --- a/libpkgconf/fragment.c +++ b/libpkgconf/fragment.c @@ -108,12 +108,7 @@ static inline char * pkgconf_fragment_copy_munged(const pkgconf_client_t *client, const char *source) { char mungebuf[PKGCONF_BUFSIZE]; - - if (client->sysroot_dir == NULL) - return strdup(source); - pkgconf_fragment_munge(client, mungebuf, sizeof mungebuf, source, client->sysroot_dir); - return strdup(mungebuf); }