projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
fa809dc
)
Zero initialize allocation to avoid using uninitialized value.
author
Sebastian Buchwald
<Sebastian.Buchwald@kit.edu>
Fri, 17 Oct 2008 18:52:11 +0000
(18:52 +0000)
committer
Sebastian Buchwald
<Sebastian.Buchwald@kit.edu>
Fri, 17 Oct 2008 18:52:11 +0000
(18:52 +0000)
[r22975]
ir/be/bestabs.c
patch
|
blob
|
history
diff --git
a/ir/be/bestabs.c
b/ir/be/bestabs.c
index
9073c15
..
6681423
100644
(file)
--- 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 = XMALLOC
Z
(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;
}