From 1d38e553eb7c787f2a8a93ff8f3dd711df3a7d94 Mon Sep 17 00:00:00 2001 From: Kyle Evans Date: Wed, 21 Feb 2018 03:06:36 +0000 Subject: [PATCH] lualoader: Return only argstr if with_kernel not requested --- stand/lua/core.lua | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/stand/lua/core.lua b/stand/lua/core.lua index e7faf2c83f50..60c56040540b 100644 --- a/stand/lua/core.lua +++ b/stand/lua/core.lua @@ -43,12 +43,16 @@ end -- This will also parse arguments to autoboot, but the with_kernel argument -- will need to be explicitly overwritten to false local parse_boot_args = function(argv, with_kernel) - if #argv == 0 then - return nil, "" - end if with_kernel == nil then with_kernel = true end + if #argv == 0 then + if with_kernel then + return nil, "" + else + return "" + end + end local kernel_name local argstr = ""