]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
initialize some values
authorWolfgang (Blub) Bumiller <blub@speed.at>
Thu, 22 Nov 2012 20:10:34 +0000 (21:10 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Thu, 22 Nov 2012 20:10:34 +0000 (21:10 +0100)
ast.c

diff --git a/ast.c b/ast.c
index 069151283bbde3ff0cc86058954a8cd1a0d10822..716ba1ac4a51f031a94839c13952bbc620480de6 100644 (file)
--- a/ast.c
+++ b/ast.c
@@ -1412,10 +1412,11 @@ bool ast_block_codegen(ast_block *self, ast_function *func, bool lvalue, ir_valu
 bool ast_store_codegen(ast_store *self, ast_function *func, bool lvalue, ir_value **out)
 {
     ast_expression_codegen *cgen;
-    ir_value *left, *right;
+    ir_value *left  = NULL;
+    ir_value *right = NULL;
 
     ast_value       *arr;
-    ast_value       *idx;
+    ast_value       *idx = 0;
     ast_array_index *ai = NULL;
 
     if (lvalue && self->expression.outl) {