From 9efe3b443e6f84f75ecfb6d5193ae1ff1eb3d485 Mon Sep 17 00:00:00 2001 From: dacctal Date: Sat, 18 Jul 2026 02:41:45 +0000 Subject: declare your packages!!! --- src/lua_globs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/lua_globs.c') diff --git a/src/lua_globs.c b/src/lua_globs.c index 74a7faa..d531fb8 100644 --- a/src/lua_globs.c +++ b/src/lua_globs.c @@ -76,7 +76,7 @@ void init_bldit_state(void) { luaL_openlibs(B); if (luaL_loadfile(B, "bldit.lua") || lua_pcall(B, 0, 0, 0)) { if (flags.verbose) - if (flags.verbose) log_warn("cannot run bldit: %s", lua_tostring(B, -1)); + log_warn("cannot run bldit: %s", lua_tostring(B, -1)); return; } lua_pushfstring(B, "%s", inst_dirs.prefix.data); @@ -94,11 +94,11 @@ void free_lua_state(void) { } void free_bldit_state(void) { - if (L != NULL) { + if (B != NULL) { lua_close(L); - L = NULL; + B = NULL; } - config_loaded = false; + bldit_loaded = false; } lua_State *get_lua_state(void) { return L; } -- cgit v1.2.3