summaryrefslogtreecommitdiffhomepage
path: root/ir/lpp
diff options
context:
space:
mode:
authorAndreas Zwinkau <zwinkau@kit.edu>2013-01-24 12:42:01 +0100
committerAndreas Zwinkau <zwinkau@kit.edu>2013-01-24 12:42:01 +0100
commita996d201f3a242e4d0592ec0e812ed78de561a9b (patch)
tree8b413be721395da1e0513c4f7366de953734c8e1 /ir/lpp
parent546848d08bc5058d5b65708f4d31338705758757 (diff)
Avoid pointer garbage
Diffstat (limited to 'ir/lpp')
-rw-r--r--ir/lpp/sp_matrix.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ir/lpp/sp_matrix.c b/ir/lpp/sp_matrix.c
index d3dd09c..51c49b5 100644
--- a/ir/lpp/sp_matrix.c
+++ b/ir/lpp/sp_matrix.c
@@ -303,8 +303,10 @@ void matrix_set(sp_matrix_t *m, int row, int col, double val)
{
matrix_elem_t *me = NULL;
entry_t *entr;
- sp_matrix_list_head_t *leftof, *above;
- sp_matrix_list_head_t *prev_leftof, *prev_above;
+ sp_matrix_list_head_t *leftof = NULL;
+ sp_matrix_list_head_t *above = NULL;
+ sp_matrix_list_head_t *prev_leftof = NULL;
+ sp_matrix_list_head_t *prev_above = NULL;
/* if necessary enlarge the matrix */
if (row > m->maxrow) {