* vms-misc.c (_bfd_vms_hash_newfunc): Fix use of uninitialized
authorAndreas Schwab <schwab@linux-m68k.org>
Wed, 2 Jun 1999 02:56:30 +0000 (02:56 +0000)
committerAndreas Schwab <schwab@linux-m68k.org>
Wed, 2 Jun 1999 02:56:30 +0000 (02:56 +0000)
variable.

bfd/ChangeLog
bfd/vms-misc.c

index f1eb62ff58e84a6dfa0a253bc2cf1afbd5b09945..5f80d550b43634bc2f36762bcaa55d922f5c7f94 100644 (file)
@@ -1,5 +1,8 @@
 Wed Jun  2 11:51:12 1999  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
 
+       * vms-misc.c (_bfd_vms_hash_newfunc): Fix use of uninitialized
+       variable.
+
        * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Avoid ambigous
        `else'. 
 
index a5fdae4cc28108faf4f672a697bd16e63caabd03..81b1fc8c92fba651200ea2a57d2c0866a0344f63 100644 (file)
@@ -198,11 +198,12 @@ _bfd_vms_hash_newfunc (entry, table, string)
          bfd_set_error (bfd_error_no_memory);
          return (struct bfd_hash_entry *)NULL;
        }
+      entry = (struct bfd_hash_entry *) ret;
     }
 
   /* Call the allocation method of the base class.  */
 
-  ret = (vms_symbol_entry *) bfd_hash_newfunc ((struct bfd_hash_entry *)ret, table, string);
+  ret = (vms_symbol_entry *) bfd_hash_newfunc (entry, table, string);
 #if VMS_DEBUG
   vms_debug (6, "_bfd_vms_hash_newfunc ret %p\n", ret);
 #endif