This commit fixes #209 by applying the suggestion from
https://github.com/pkgconf/pkgconf/issues/209#issuecomment-771609136.
master
Ryan Scott 2021-02-03 06:54:52 -05:00 committed by Ariadne Conill
parent 13a5d9a5f0
commit ab404bc25b
1 changed files with 1 additions and 1 deletions

View File

@ -391,7 +391,7 @@ pkgconf_pkg_new_from_file(pkgconf_client_t *client, const char *filename, FILE *
*/
char *mungeptr;
if ((mungeptr = strrchr(idptr, '/')) != NULL)
idptr = mungeptr++;
idptr = ++mungeptr;
#endif
pkg->id = strdup(idptr);