This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix relpp may be used uninitialized


Some versions of gcc and/or optimization levels aren't clever enough
to see that relpp really isn't used uninitialized.

	* objdump.c (dump_relocs_in_section): Warning fix.

diff --git a/binutils/objdump.c b/binutils/objdump.c
index d80b3f5a88..644638c321 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;
 

-- 
Alan Modra
Australia Development Lab, IBM


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]