diff --git a/debuggerd/crasher/crasher.cpp b/debuggerd/crasher/crasher.cpp index 4043a6e03..6a1987882 100644 --- a/debuggerd/crasher/crasher.cpp +++ b/debuggerd/crasher/crasher.cpp @@ -164,7 +164,8 @@ noinline void fprintf_null() { } noinline void readdir_null() { - readdir(nullptr); + DIR* sneaky_null = nullptr; + readdir(sneaky_null); } noinline int strlen_null() {