diff options
author | sin-ack <sin-ack@users.noreply.github.com> | 2022-07-11 20:42:03 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-07-12 23:11:35 +0200 |
commit | 60f6bc902b1c13b6eaa8f27b4a99cd40af6bf5cf (patch) | |
tree | 26ec0ce031f335bcc93a92135dbd02c21687c37e /Userland/Utilities/disasm.cpp | |
parent | fded8f861d7576ceffc818c43bdd62285b569ad0 (diff) | |
download | serenity-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.cpp | 2 |
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( |