Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(409)

Unified Diff: bfd/coff-h8300.c

Issue 124383005: GDB 7.6.50 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@upstream
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « bfd/coff-arm.c ('k') | bfd/coff-h8500.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bfd/coff-h8300.c
diff --git a/bfd/coff-h8300.c b/bfd/coff-h8300.c
index 0f1de573f1c5249277fedb1de745f11fe3c3364d..1e3427502ca1776382d44f5a09ccd2c7664b8601 100644
--- a/bfd/coff-h8300.c
+++ b/bfd/coff-h8300.c
@@ -173,7 +173,7 @@ h8300_coff_link_hash_table_create (bfd *abfd)
struct h8300_coff_link_hash_table *ret;
bfd_size_type amt = sizeof (struct h8300_coff_link_hash_table);
- ret = (struct h8300_coff_link_hash_table *) bfd_malloc (amt);
+ ret = (struct h8300_coff_link_hash_table *) bfd_zmalloc (amt);
if (ret == NULL)
return NULL;
if (!_bfd_link_hash_table_init (&ret->root.root, abfd,
@@ -184,11 +184,6 @@ h8300_coff_link_hash_table_create (bfd *abfd)
return NULL;
}
- /* Initialize our data. */
- ret->vectors_sec = NULL;
- ret->funcvec_hash_table = NULL;
-
- /* OK. Everything's initialized, return the base pointer. */
return &ret->root.root;
}
« no previous file with comments | « bfd/coff-arm.c ('k') | bfd/coff-h8500.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698