1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:17:44 +00:00

Crash: Woops! Remove a misplaced if (true)

I was testing with this and must have forgotten to remove it :(
This commit is contained in:
Shannon Booth 2019-12-31 14:41:08 +13:00 committed by Andreas Kling
parent 8dc6fc9aca
commit 8a0ef92100

View file

@ -189,7 +189,7 @@ int main(int argc, char** argv)
if (mode == ReadFromFreedMemory || mode == TestAllCrashTypes) {
Crash("Read from freed memory", []() {
auto* uninitialized_memory = (volatile u32**)malloc(1024);
if (true)
if (!uninitialized_memory)
return Crash::Failure::UnexpectedError;
free(uninitialized_memory);