Fix relpp may be used uninitialized
authorAlan Modra <amodra@gmail.com>
Mon, 25 Mar 2019 22:29:11 +0000 (08:59 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 25 Mar 2019 22:31:53 +0000 (09:01 +1030)
* objdump.c (dump_relocs_in_section): Warning fix.

binutils/ChangeLog
binutils/objdump.c

index 83aa37c58b9ebf422aa33fd957320fce777e58ff..140ca8c7a15b58a72cf2457c20dea1ff4f272cbd 100644 (file)
@@ -1,3 +1,7 @@
+2019-03-26  Alan Modra  <amodra@gmail.com>
+
+       * objdump.c (dump_relocs_in_section): Warning fix.
+
 2019-03-25  Tamar Christina  <tamar.christina@arm.com>
 
        * testsuite/binutils-all/arm/in-order-all.d: New test.
index d80b3f5a8890063baf567e850ed73162788dc702..644638c321e4dec358c533efbb428ce9f701cc1e 100644 (file)
@@ -3632,7 +3632,7 @@ dump_relocs_in_section (bfd *abfd,
                        asection *section,
                        void *dummy ATTRIBUTE_UNUSED)
 {
-  arelent **relpp;
+  arelent **relpp = NULL;
   long relcount;
   long relsize;