summaryrefslogtreecommitdiffstats
path: root/libdwfl/linux-kernel-modules.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdwfl/linux-kernel-modules.c')
-rw-r--r--libdwfl/linux-kernel-modules.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdwfl/linux-kernel-modules.c b/libdwfl/linux-kernel-modules.c
index 5bbb384a..ccc62c52 100644
--- a/libdwfl/linux-kernel-modules.c
+++ b/libdwfl/linux-kernel-modules.c
@@ -593,7 +593,7 @@ dwfl_linux_kernel_find_elf (Dwfl_Module *mod,
Dwarf_Addr base __attribute__ ((unused)),
char **file_name, Elf **elfp)
{
- if (mod->build_id_len > 0)
+ if (BUILD_ID_PTR (mod->build_id))
{
int fd = INTUSE(dwfl_build_id_find_elf) (mod, NULL, NULL, 0,
file_name, elfp);