mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:37:36 +00:00
Utilities/profile: Call split_view() using StringView for command parts
This fixes the always appearing 'No such file' error when using the -c flag, as the String was deconstructed right after running this line.
This commit is contained in:
parent
00782d9a59
commit
35cb5ea47c
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
return 0;
|
||||
}
|
||||
|
||||
auto cmd_parts = String(cmd_argument).split_view(' ');
|
||||
auto cmd_parts = StringView(cmd_argument).split_view(' ');
|
||||
|
||||
dbgln("Enabling profiling for PID {}", getpid());
|
||||
TRY(Core::System::profiling_enable(getpid(), event_mask));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue