2005-03-18 Paul Brook <paul@codesourcery.com>
authorPaul Brook <paul@codesourcery.com>
Fri, 18 Mar 2005 16:28:13 +0000 (16:28 +0000)
committerPaul Brook <paul@codesourcery.com>
Fri, 18 Mar 2005 16:28:13 +0000 (16:28 +0000)
* objdump.c (objdump_print_addr): Avoid uninitialized warning.

binutils/ChangeLog
binutils/objdump.c

index 2ceab74703eac192bd8c49d9ced208ba1b8b9488..8520871c0b112f7f0b11c8eba154d713683c9353 100644 (file)
@@ -1,3 +1,7 @@
+2005-03-18  Paul Brook  <paul@codesourcery.com>
+
+       * objdump.c (objdump_print_addr): Avoid uninitialized warning.
+
 2005-03-17  Diego Novillo  <dnovillo@redhat.com>
 
        * MAINTAINERS: Remove self as maintainer of x86 intel
index a3360899b4b69f1a9439519e8d1c11462644e2bb..51f9b4c2b0168818a645b2d58e4db3f13fa03ac8 100644 (file)
@@ -854,7 +854,7 @@ objdump_print_addr (bfd_vma vma,
                    bfd_boolean skip_zeroes)
 {
   struct objdump_disasm_info *aux;
-  asymbol *sym;
+  asymbol *sym = NULL; /* Initialize to avoid compiler warning.  */
 #ifdef DISASSEMBLER_NEEDS_RELOCS
   bfd_boolean skip_find = FALSE;
 #endif