aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>1999-06-02 02:56:30 +0000
committerAndreas Schwab <schwab@linux-m68k.org>1999-06-02 02:56:30 +0000
commit015985c9fcc34fb94b31c1bef0e20ef8e9aa2f19 (patch)
treeb49263fb410131e681d242d8576123739c8f7f3d
parent70f06c4ad05fdc4ab02b35b0f1e4453feaa7603b (diff)
downloadgdb-015985c9fcc34fb94b31c1bef0e20ef8e9aa2f19.zip
gdb-015985c9fcc34fb94b31c1bef0e20ef8e9aa2f19.tar.gz
gdb-015985c9fcc34fb94b31c1bef0e20ef8e9aa2f19.tar.bz2
* vms-misc.c (_bfd_vms_hash_newfunc): Fix use of uninitialized
variable.
-rw-r--r--bfd/ChangeLog3
-rw-r--r--bfd/vms-misc.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index f1eb62f..5f80d55 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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'.
diff --git a/bfd/vms-misc.c b/bfd/vms-misc.c
index a5fdae4..81b1fc8 100644
--- a/bfd/vms-misc.c
+++ b/bfd/vms-misc.c
@@ -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