From 2f3ecc87bf923f17be6749cc94666f0c8eeb2825 Mon Sep 17 00:00:00 2001 From: Kyle Evans Date: Fri, 2 Mar 2018 02:39:16 +0000 Subject: [PATCH] lualoader: Fix some lint-mentioned errors - nextbootfile is not a variable, but nextboot_file is - pstatus was explicitly initialized but later clobbered, so don't initialize it. --- stand/lua/config.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stand/lua/config.lua b/stand/lua/config.lua index b36be7ced4d8..fc3efb9a7e2e 100644 --- a/stand/lua/config.lua +++ b/stand/lua/config.lua @@ -173,7 +173,7 @@ local function checkNextboot() end if not config.parse(text) then - print(MSG_FAILPARSECFG:format(nextbootfile)) + print(MSG_FAILPARSECFG:format(nextboot_file)) end -- Attempt to rewrite the first line and only the first line of the @@ -274,7 +274,7 @@ end function config.loadmod(mod, silent) local status = true - local pstatus = true + local pstatus for k, v in pairs(mod) do if v.load == "YES" then local str = "load "