Userland: Don't return an error when jp is run without arguments

This commit is contained in:
Dan MacDonald 2019-07-02 09:26:45 +01:00 committed by Andreas Kling
parent 362ac8f1ba
commit 0b1ff2d0eb
Notes: sideshowbarker 2024-07-19 13:24:30 +09:00

View File

@ -15,7 +15,7 @@ int main(int argc, char** argv)
{
if (argc != 2) {
fprintf(stderr, "usage: jp <file>\n");
return 1;
return 0;
}
CFile file(argv[1]);
if (!file.open(CIODevice::ReadOnly)) {