Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Feb 2018 03:06:36 +0000 (UTC)
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r329693 - head/stand/lua
Message-ID:  <201802210306.w1L36amD055740@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevans
Date: Wed Feb 21 03:06:36 2018
New Revision: 329693
URL: https://svnweb.freebsd.org/changeset/base/329693

Log:
  lualoader: Return only argstr if with_kernel not requested

Modified:
  head/stand/lua/core.lua

Modified: head/stand/lua/core.lua
==============================================================================
--- head/stand/lua/core.lua	Wed Feb 21 02:35:13 2018	(r329692)
+++ head/stand/lua/core.lua	Wed Feb 21 03:06:36 2018	(r329693)
@@ -43,11 +43,15 @@ 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 = ""



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802210306.w1L36amD055740>