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 2ceab74..8520871 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 a336089..51f9b4c 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