]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
libdw: Remove unused variable initialization in dwarf_siblingof.
authorMark Wielaard <mark@klomp.org>
Sun, 28 Apr 2019 11:04:28 +0000 (13:04 +0200)
committerMark Wielaard <mark@klomp.org>
Sun, 28 Apr 2019 11:04:28 +0000 (13:04 +0200)
We immediately reassign the value of addr after declaration.

Signed-off-by: Mark Wielaard <mark@klomp.org>
libdw/ChangeLog
libdw/dwarf_siblingof.c

index bc446fe5a61403561bf58ad735b97ddf311a2dc4..37aab80475056b06d8b472d0705220336b39e549 100644 (file)
@@ -1,3 +1,7 @@
+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
index 613d2090875d4684a33eef5619845f1541c94f5e..dbed9fa8218976ef9a9387499e741a23076f4ff2 100644 (file)
@@ -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.  */