issue #198 Missing initializer for proto->upvalues[i].usertype when usertype is NULL

ravi-compiler
Dibyendu Majumdar 4 years ago
parent a45eaa8a24
commit 45f823b604

@ -163,6 +163,9 @@ static int lua_addUpValue(void* context, Proto* f, struct string_object* name, u
int kpos = lua_newStringConstant(context, f, usertype);
f->upvalues[pos].usertype = tsvalue(&f->k[kpos]);
}
else {
f->upvalues[pos].usertype = NULL;
}
luaC_objbarrier(L, f, tsname);
return pos;
}

Loading…
Cancel
Save