summaryrefslogtreecommitdiff
path: root/Userland/Utilities/aplay.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/aplay.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/aplay.cpp')
-rw-r--r--Userland/Utilities/aplay.cpp2
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;