Skip to content

Commit

Permalink
issue #198 Missing initializer for proto->upvalues[i].usertype when u…
Browse files Browse the repository at this point in the history
…sertype is NULL
  • Loading branch information
dibyendumajumdar committed Sep 6, 2020
1 parent a45eaa8 commit 45f823b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ravi_complib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 45f823b

Please sign in to comment.