From e8fba7f6bbc06ee96e527c9ebf4128461336cd20 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 26 Mar 2019 08:59:11 +1030 Subject: [PATCH] Fix relpp may be used uninitialized * objdump.c (dump_relocs_in_section): Warning fix. --- binutils/ChangeLog | 4 ++++ binutils/objdump.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 83aa37c58b9..140ca8c7a15 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +2019-03-26 Alan Modra + + * objdump.c (dump_relocs_in_section): Warning fix. + 2019-03-25 Tamar Christina * testsuite/binutils-all/arm/in-order-all.d: New test. diff --git a/binutils/objdump.c b/binutils/objdump.c index d80b3f5a889..644638c321e 100644 --- a/binutils/objdump.c +++ b/binutils/objdump.c @@ -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; -- 2.30.2