From c55bca1b6d5198089e9ec44b90de718cfeaea839 Mon Sep 17 00:00:00 2001 From: Sebastian Buchwald Date: Fri, 17 Oct 2008 18:52:11 +0000 Subject: [PATCH] Zero initialize allocation to avoid using uninitialized value. [r22975] --- ir/be/bestabs.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ir/be/bestabs.c b/ir/be/bestabs.c index 9073c15fa..6681423f2 100644 --- a/ir/be/bestabs.c +++ b/ir/be/bestabs.c @@ -816,15 +816,10 @@ static const debug_ops stabs_ops = { /* Opens a stabs handler */ dbg_handle *be_stabs_open(void) { - stabs_handle *h = XMALLOC(stabs_handle); + stabs_handle *h = XMALLOCZ(stabs_handle); h->base.ops = &stabs_ops; - h->cur_ent = NULL; - h->layout = NULL; - h->next_type_nr = 0; h->type_map = pmap_create_ex(64); - h->main_file = NULL; - h->curr_file = NULL; return &h->base; } -- 2.20.1