diff --git a/Userland/Utilities/jp.cpp b/Userland/Utilities/jp.cpp index 99612c1adb..1523e01254 100644 --- a/Userland/Utilities/jp.cpp +++ b/Userland/Utilities/jp.cpp @@ -36,10 +36,11 @@ ErrorOr serenity_main(Main::Arguments arguments) VERIFY(spaces_in_indent >= 0); args_parser.parse(arguments); + RefPtr file; if (path == nullptr) - path = "/dev/stdin"sv; - - auto file = TRY(Core::File::open(path, Core::OpenMode::ReadOnly)); + file = Core::File::standard_input(); + else + file = TRY(Core::File::open(path, Core::OpenMode::ReadOnly)); TRY(Core::System::pledge("stdio"));