fragment: simplify pkgconf_fragment_copy_munged()

feature/tap-sh
William Pitcock 2017-01-13 20:10:02 -06:00
parent 87a5a1f0cc
commit cb1dc71e23
1 changed files with 0 additions and 5 deletions

View File

@ -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);
}