]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
fix an uninitialized value
authorWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 11 Nov 2012 20:32:04 +0000 (21:32 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 11 Nov 2012 20:32:04 +0000 (21:32 +0100)
ast.c

diff --git a/ast.c b/ast.c
index a134be23eb1412dcf87ea074ba294ce5b4bfa8a2..9e6aa57757d754b9d161a1e665ee2706cbe76535 100644 (file)
--- a/ast.c
+++ b/ast.c
@@ -1244,9 +1244,9 @@ bool ast_store_codegen(ast_store *self, ast_function *func, bool lvalue, ir_valu
     ast_expression_codegen *cgen;
     ir_value *left, *right;
 
-    ast_array_index *ai;
     ast_value       *arr;
     ast_value       *idx;
+    ast_array_index *ai = NULL;
 
     if (lvalue && self->expression.outl) {
         *out = self->expression.outl;