summaryrefslogtreecommitdiffstats
path: root/libdw/dwarf_getlocation.c
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2019-04-28 12:42:04 +0200
committerMark Wielaard <mark@klomp.org>2019-04-28 12:54:58 +0200
commit362d090f0a089c8c82a28a849d223855b69177c8 (patch)
tree4ee1ef1e1cb80c17450a353926f6419cf77e1308 /libdw/dwarf_getlocation.c
parent2b55f157cd74278c0c01e8605de3bbb160d3bde4 (diff)
libdw: Call check_constant_offset with direct pointers.
In dwarf_getlocation_addr pass the pointers to llbufs and listlens indirectly by passing a pointer to the first array element. Simplify the code by passing the pointers directly. Signed-off-by: Mark Wielaard <mark@klomp.org>
Diffstat (limited to 'libdw/dwarf_getlocation.c')
-rw-r--r--libdw/dwarf_getlocation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdw/dwarf_getlocation.c b/libdw/dwarf_getlocation.c
index ae3f511e..6fb3ff3d 100644
--- a/libdw/dwarf_getlocation.c
+++ b/libdw/dwarf_getlocation.c
@@ -898,7 +898,7 @@ dwarf_getlocation_addr (Dwarf_Attribute *attr, Dwarf_Addr address,
}
}
- int result = check_constant_offset (attr, &llbufs[0], &listlens[0]);
+ int result = check_constant_offset (attr, llbufs, listlens);
if (result != 1)
return result ?: 1;