From ece880d5e372e25f47fbe1bf650823124f40954d Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Sun, 19 Aug 2012 18:03:56 +0200 Subject: [PATCH] missing initializer --- ir.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ir.c b/ir.c index 3132685..713e5df 100644 --- a/ir.c +++ b/ir.c @@ -306,6 +306,8 @@ ir_function* ir_function_new(ir_builder* owner, int outtype) if (!self) return NULL; + memset(self, 0, sizeof(*self)); + self->name = NULL; if (!ir_function_set_name(self, "<@unnamed>")) { mem_d(self); @@ -323,6 +325,7 @@ ir_function* ir_function_new(ir_builder* owner, int outtype) MEM_VECTOR_INIT(self, locals); self->code_function_def = -1; + self->allocated_locals = 0; self->run_id = 0; return self; -- 2.39.2