summaryrefslogtreecommitdiffstats
path: root/libdw/libdw_findcu.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdw/libdw_findcu.c')
-rw-r--r--libdw/libdw_findcu.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libdw/libdw_findcu.c b/libdw/libdw_findcu.c
index c783ff8a..d8da2e38 100644
--- a/libdw/libdw_findcu.c
+++ b/libdw/libdw_findcu.c
@@ -119,9 +119,8 @@ __libdw_intern_next_unit (dbg, debug_types)
if (debug_types)
Dwarf_Sig8_Hash_insert (&dbg->sig8_hash, type_sig8, newp);
- void *buf = cu_data (newp)->d_buf;
- newp->startp = buf + newp->start;
- newp->endp = buf + newp->end;
+ newp->startp = data->d_buf + newp->start;
+ newp->endp = data->d_buf + newp->end;
/* Add the new entry to the search tree. */
if (tsearch (newp, tree, findcu_cb) == NULL)