summaryrefslogtreecommitdiff
path: root/Userland/Utilities/disasm.cpp
diff options
context:
space:
mode:
authorsin-ack <sin-ack@users.noreply.github.com>2022-07-11 20:42:03 +0000
committerAndreas Kling <kling@serenityos.org>2022-07-12 23:11:35 +0200
commit60f6bc902b1c13b6eaa8f27b4a99cd40af6bf5cf (patch)
tree26ec0ce031f335bcc93a92135dbd02c21687c37e /Userland/Utilities/disasm.cpp
parentfded8f861d7576ceffc818c43bdd62285b569ad0 (diff)
downloadserenity-60f6bc902b1c13b6eaa8f27b4a99cd40af6bf5cf.zip
Userland: Convert command line arguments to String/StringView
StringView was used where possible. Some utilities still use libc functions which expect null-terminated strings, so String objects were used there instead.
Diffstat (limited to 'Userland/Utilities/disasm.cpp')
-rw-r--r--Userland/Utilities/disasm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Utilities/disasm.cpp b/Userland/Utilities/disasm.cpp
index d175a4f907..1b998c3625 100644
--- a/Userland/Utilities/disasm.cpp
+++ b/Userland/Utilities/disasm.cpp
@@ -19,7 +19,7 @@
ErrorOr<int> serenity_main(Main::Arguments args)
{
- char const* path = nullptr;
+ StringView path {};
Core::ArgsParser args_parser;
args_parser.set_general_help(