aboutsummaryrefslogtreecommitdiff
path: root/src/lua_state.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua_state.c')
-rw-r--r--src/lua_state.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua_state.c b/src/lua_state.c
index c23eb92..623c87b 100644
--- a/src/lua_state.c
+++ b/src/lua_state.c
@@ -610,7 +610,7 @@ bool config_install(const char *path, const char *target) {
return false;
}
target_loop_success = target_loop_install(L, "init.lua", target);
- lua_pop(L, 1);
+ lua_pop(L, 2);
}
lua_pop(L, 1);
return target_loop_success;
@@ -647,7 +647,7 @@ bool config_uninstall(const char *path, const char *target) {
return false;
}
target_loop_success = target_loop_uninstall(L, "init.lua", target);
- lua_pop(L, 1);
+ lua_pop(L, 2);
}
lua_pop(L, 1);
return target_loop_success;