forked from ariadne/pkgconf
Fix #209
This commit fixes #209 by applying the suggestion from https://github.com/pkgconf/pkgconf/issues/209#issuecomment-771609136.master
parent
13a5d9a5f0
commit
ab404bc25b
|
@ -391,7 +391,7 @@ pkgconf_pkg_new_from_file(pkgconf_client_t *client, const char *filename, FILE *
|
||||||
*/
|
*/
|
||||||
char *mungeptr;
|
char *mungeptr;
|
||||||
if ((mungeptr = strrchr(idptr, '/')) != NULL)
|
if ((mungeptr = strrchr(idptr, '/')) != NULL)
|
||||||
idptr = mungeptr++;
|
idptr = ++mungeptr;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
pkg->id = strdup(idptr);
|
pkg->id = strdup(idptr);
|
||||||
|
|
Loading…
Reference in New Issue