From: Sebastian Buchwald Date: Fri, 17 Oct 2008 18:52:11 +0000 (+0000) Subject: Zero initialize allocation to avoid using uninitialized value. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=c55bca1b6d5198089e9ec44b90de718cfeaea839;hp=fa809dc828404022b5cf824b71b9d64451b7b45a;p=libfirm Zero initialize allocation to avoid using uninitialized value. [r22975] --- 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; }