Skip to content

Commit

Permalink
Kernel: Replace KString::must_create, fix init_args
Browse files Browse the repository at this point in the history
  • Loading branch information
BenWiederhake authored and bgianfo committed Sep 19, 2022
1 parent f8a42ef commit 55d78ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Kernel/CommandLine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,9 @@ NonnullOwnPtrVector<KString> CommandLine::userspace_init_args() const

auto init_args = lookup("init_args"sv).value_or(""sv).split_view(';');
if (!init_args.is_empty())
MUST(args.try_prepend(KString::must_create(userspace_init())));
MUST(args.try_prepend(MUST(KString::try_create(userspace_init()))));
for (auto& init_arg : init_args)
args.append(KString::must_create(init_arg));
args.append(MUST(KString::try_create(init_arg)));
return args;
}

Expand Down

0 comments on commit 55d78ca

Please sign in to comment.