1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-20 18:15:07 +00:00

Userland: Add missing checks for MappedFile.is_valid()

This commit is contained in:
Ben Wiederhake 2020-07-31 11:21:33 +02:00 committed by Andreas Kling
parent 17248ab6fe
commit 538a3a2579
2 changed files with 6 additions and 0 deletions

View file

@ -183,6 +183,8 @@ int main(int argc, char** argv)
}
MappedFile mapped_file { zip_file_path };
if (!mapped_file.is_valid())
return 1;
printf("Archive: %s\n", zip_file_path.characters());