diff options
Diffstat (limited to 'Userland/crash.cpp')
-rw-r--r-- | Userland/crash.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/crash.cpp b/Userland/crash.cpp index 09c8554260..8666fa6fb4 100644 --- a/Userland/crash.cpp +++ b/Userland/crash.cpp @@ -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); |