summaryrefslogtreecommitdiff
path: root/libdwfl/segment.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdwfl/segment.c')
-rw-r--r--libdwfl/segment.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libdwfl/segment.c b/libdwfl/segment.c
index d39fdab9..9d78c87f 100644
--- a/libdwfl/segment.c
+++ b/libdwfl/segment.c
@@ -121,6 +121,8 @@ insert (Dwfl *dwfl, size_t i, GElf_Addr start, GElf_Addr end, int segndx)
{
dwfl->lookup_addr[i] = start;
dwfl->lookup_segndx[i] = segndx;
+ if (dwfl->lookup_module != NULL)
+ dwfl->lookup_module[i] = NULL;
++i;
}
else
@@ -130,6 +132,8 @@ insert (Dwfl *dwfl, size_t i, GElf_Addr start, GElf_Addr end, int segndx)
{
dwfl->lookup_addr[i] = end;
dwfl->lookup_segndx[i] = -1;
+ if (dwfl->lookup_module != NULL)
+ dwfl->lookup_module[i] = NULL;
}
dwfl->lookup_elts += need;