diff options
author | Mark Wielaard <mark@klomp.org> | 2019-04-28 13:04:28 +0200 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2019-04-28 13:04:28 +0200 |
commit | 4ec3ce577c74938a686ce2231032615756d0f6ae (patch) | |
tree | 76a9f4f4fee7781da077a04e50989b787dfab6be /libdw | |
parent | 362d090f0a089c8c82a28a849d223855b69177c8 (diff) | |
download | elfutils-4ec3ce577c74938a686ce2231032615756d0f6ae.tar.gz |
libdw: Remove unused variable initialization in dwarf_siblingof.
We immediately reassign the value of addr after declaration.
Signed-off-by: Mark Wielaard <mark@klomp.org>
Diffstat (limited to 'libdw')
-rw-r--r-- | libdw/ChangeLog | 4 | ||||
-rw-r--r-- | libdw/dwarf_siblingof.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/libdw/ChangeLog b/libdw/ChangeLog index bc446fe5..37aab804 100644 --- a/libdw/ChangeLog +++ b/libdw/ChangeLog @@ -1,5 +1,9 @@ 2019-04-28 Mark Wielaard <mark@klomp.org> + * dwarf_siblingof.c (dwarf_siblingof): Don't initialize addr. + +2019-04-28 Mark Wielaard <mark@klomp.org> + * dwarf_getlocation.c (dwarf_getlocation_addr): Call check_constant_offset with llbufs and listlens directly. diff --git a/libdw/dwarf_siblingof.c b/libdw/dwarf_siblingof.c index 613d2090..dbed9fa8 100644 --- a/libdw/dwarf_siblingof.c +++ b/libdw/dwarf_siblingof.c @@ -57,7 +57,7 @@ dwarf_siblingof (Dwarf_Die *die, Dwarf_Die *result) /* Copy of the CU in the request. */ sibattr.cu = this_die.cu; /* That's the address we start looking. */ - unsigned char *addr = this_die.addr; + unsigned char *addr; /* Search for the beginning of the next die on this level. We must not return the dies for children of the given die. */ |