diff options
| author | dacctal <donotcontactmevia@email.invalid> | 2026-07-18 02:41:45 +0000 |
|---|---|---|
| committer | dacctal <donotcontactmevia@email.invalid> | 2026-07-18 02:41:45 +0000 |
| commit | 9efe3b443e6f84f75ecfb6d5193ae1ff1eb3d485 (patch) | |
| tree | 687ac517607c8fdcde5723814ca7ff11ce63dce3 /src/lua_globs.c | |
| parent | 518be7f92e2c2bc1a3cc3cfe1223390ae3cd9c2b (diff) | |
declare your packages!!!
Diffstat (limited to 'src/lua_globs.c')
| -rw-r--r-- | src/lua_globs.c | 8 |
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; } |
