]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
Clear stack after print_jit_status() in CLI.
authorMike Pall <mike>
Mon, 29 Jan 2018 12:25:51 +0000 (13:25 +0100)
committerMike Pall <mike>
Mon, 29 Jan 2018 12:25:51 +0000 (13:25 +0100)
Suggested by Hydroque.

src/luajit.c

index 0e18dc5feefc1aac29dd55cda5fb6e0beca24abe..9ede59c14c9303030855a24d601a5ef16245be58 100644 (file)
@@ -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)