Skip to content

Commit 7632e05

Browse files
glk0lneto
authored andcommitted
fix: initialize variable
1 parent 1f0aba8 commit 7632e05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lunatik_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ static int lunatik_lresume(lua_State *L)
166166
{
167167
lua_State *Lto = lunatik_check(L, 1);
168168
int nargs = lua_gettop(L) - 1;
169-
int nresults;
169+
int nresults = 0;
170170

171171
if (lunatik_copyobjects(Lto, L, 2, nargs) != LUA_OK || (nresults = lunatik_resume(Lto, L, nargs) < 0)) {
172172
lua_pushfstring(L, "%s\n", lua_tostring(Lto, -1));

0 commit comments

Comments
 (0)