Skip to content

Commit

Permalink
fix file position initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
lneto committed Nov 7, 2023
1 parent ba65eb4 commit 4eb59aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lunatik_aux.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ static const char *lunatik_loader(lua_State *L, void *ud, size_t *size)

int lunatik_loadfile(lua_State *L, const char *filename, const char *mode)
{
lunatik_file lf;
lunatik_file lf = {NULL, NULL, 0};
int status = LUA_ERRFILE;
int fnameindex = lua_gettop(L) + 1; /* index of filename on the stack */

Expand Down

0 comments on commit 4eb59aa

Please sign in to comment.