From 61ea63adca34b34ec8f33253f4895f80e16cb967 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 25 Nov 2021 21:02:27 -0800 Subject: more stack hygiene --- src/lua.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/lua.c b/src/lua.c index 6a12fbf..04de892 100644 --- a/src/lua.c +++ b/src/lua.c @@ -339,7 +339,9 @@ static int handle_image (lua_State *L, char **argv, int n) { status = dostring(L, value, key); if (status != 0) return report(L, status); } + lua_pop(L, 1); } + lua_pop(L, 1); /* call main() */ lua_getglobal(L, "main"); status = docall(L, 0, 1); -- cgit 1.4.1-2-gfad0 lue='4ff14e821ee86c40866a1400dc67a4206271b9b5'/> Soul of a tiny new machine. More thorough tests → More comprehensible and rewrite-friendly software → More resilient society.Kartik K. Agaram <vc@akkartik.com>
about summary refs log blame commit diff stats
path: root/042name.cc
blob: 557469d07cdb99caf90434208f52c171191e0456 (plain) (tree)
1
2
3
4