Skip to content

Commit

Permalink
ABI: fix segfault in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bapt committed Nov 22, 2024
1 parent c2fe22b commit 0ded12c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libpkg/pkg_elf.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ shlib_valid_abi(const char *fpath, GElf_Ehdr *hdr)
*/
arch[0] = '\0';
wordsize[0] = '\0';
p = ctx.oi->abi;
p = pkg_object_string(pkg_config_get("ABI"));
for(semicolon = 0; semicolon < 3 && p != NULL; semicolon ++, p ++) {
p = strchr(p, ':');
if (p != NULL) {
Expand Down

0 comments on commit 0ded12c

Please sign in to comment.