Skip to content

Commit 03cd5aa

Browse files
author
Mike Pall
committed
Clear stack after print_jit_status() in CLI.
Suggested by Hydroque.
1 parent d4ee803 commit 03cd5aa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/luajit.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ static void print_jit_status(lua_State *L)
151151
fputs(s, stdout);
152152
}
153153
putc('\n', stdout);
154+
lua_settop(L, 0); /* clear stack */
154155
}
155156

156157
static int getargs(lua_State *L, char **argv, int n)

0 commit comments

Comments
 (0)