aboutsummaryrefslogtreecommitdiff
path: root/src/lua_globs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua_globs.c')
-rw-r--r--src/lua_globs.c8
1 files changed, 4 insertions, 4 deletions
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; }