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
commit 8a0ef92100
Notes: sideshowbarker 2024-07-19 10:31:02 +09:00

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);