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/aplay.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/aplay.cpp')
-rw-r--r-- | Userland/Utilities/aplay.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Utilities/aplay.cpp b/Userland/Utilities/aplay.cpp index aae55d3456..1697cd139e 100644 --- a/Userland/Utilities/aplay.cpp +++ b/Userland/Utilities/aplay.cpp @@ -24,7 +24,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) { TRY(Core::System::pledge("stdio rpath sendfd unix thread")); - char const* path = nullptr; + StringView path {}; bool should_loop = false; bool show_sample_progress = false; |