From: Mike Pall Date: Mon, 29 Jan 2018 12:25:51 +0000 (+0100) Subject: Clear stack after print_jit_status() in CLI. X-Git-Tag: v2.1.ROLLING~328^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03cd5aa749c1bc3bb4b7d4289236b6096cb3dc85;p=thirdparty%2FLuaJIT.git Clear stack after print_jit_status() in CLI. Suggested by Hydroque. --- diff --git a/src/luajit.c b/src/luajit.c index 0e18dc5f..9ede59c1 100644 --- a/src/luajit.c +++ b/src/luajit.c @@ -151,6 +151,7 @@ static void print_jit_status(lua_State *L) fputs(s, stdout); } putc('\n', stdout); + lua_settop(L, 0); /* clear stack */ } static int getargs(lua_State *L, char **argv, int n)