From e38fbb3d0a6125440a8100d7f660903e78bc1154 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Sun, 7 Mar 2010 14:32:50 +0100 Subject: [PATCH] Fix assertion in rec_check_slots. --- src/lj_record.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lj_record.c b/src/lj_record.c index cca636c7..d0cad539 100644 --- a/src/lj_record.c +++ b/src/lj_record.c @@ -96,7 +96,7 @@ static void rec_check_ir(jit_State *J) static void rec_check_slots(jit_State *J) { BCReg s, nslots = J->baseslot + J->maxslot; - int32_t depth; + int32_t depth = 0; cTValue *base = J->L->base - J->baseslot; lua_assert(J->baseslot >= 1 && J->baseslot < LJ_MAX_JSLOTS); lua_assert(J->baseslot == 1 || (J->slot[J->baseslot-1] & TREF_FRAME));