]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
adding missing initializer for ir_value's member array
authorWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 12 Aug 2012 19:56:53 +0000 (21:56 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 12 Aug 2012 19:56:53 +0000 (21:56 +0200)
ir.c

diff --git a/ir.c b/ir.c
index f273f1c34cff8cce52f34021e5ca8e6a8e238c02..cfc185bffa9c1e78b49075fe0baa50a39ad4b3c8 100644 (file)
--- a/ir.c
+++ b/ir.c
@@ -575,6 +575,10 @@ ir_value* ir_value_var(const char *name, int storetype, int vtype)
     memset(&self->constval, 0, sizeof(self->constval));
     memset(&self->code,     0, sizeof(self->code));
 
+    self->members[0] = NULL;
+    self->members[1] = NULL;
+    self->members[2] = NULL;
+
     MEM_VECTOR_INIT(self, life);
     return self;
 }