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 = ""
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to