From 015985c9fcc34fb94b31c1bef0e20ef8e9aa2f19 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Wed, 2 Jun 1999 02:56:30 +0000 Subject: * vms-misc.c (_bfd_vms_hash_newfunc): Fix use of uninitialized variable. --- bfd/vms-misc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bfd/vms-misc.c') 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 -- cgit v1.1