commit | e851f2d6173f531c6b6deb7f1723debb3e6a7f7f | [log] [tgz] |
---|---|---|
author | Zijun Zhao <zijunzhao@google.com> | Wed Mar 08 05:16:57 2023 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Wed Mar 08 05:16:57 2023 +0000 |
tree | 0cf6f9d737317e51392555c9528966576990f6eb | |
parent | 57feb3fbbd3dd00f270d9386718afda9331f1f46 [diff] | |
parent | f5e1533f2f19327f60723b5326c122b81066f2db [diff] |
Merge "Suppress the error warning"
diff --git a/debuggerd/crasher/crasher.cpp b/debuggerd/crasher/crasher.cpp index 4eb7382..4043a6e 100644 --- a/debuggerd/crasher/crasher.cpp +++ b/debuggerd/crasher/crasher.cpp
@@ -159,7 +159,8 @@ } noinline void fprintf_null() { - fprintf(nullptr, "oops"); + FILE* sneaky_null = nullptr; + fprintf(sneaky_null, "oops"); } noinline void readdir_null() {