Skip to content

Commit

Permalink
Merge "Suppress the error warning"
Browse files Browse the repository at this point in the history
  • Loading branch information
ZijunZhaoCCK authored and Gerrit Code Review committed Mar 8, 2023
2 parents 57feb3f + f5e1533 commit e851f2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion debuggerd/crasher/crasher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ noinline void sigsegv_non_null() {
}

noinline void fprintf_null() {
fprintf(nullptr, "oops");
FILE* sneaky_null = nullptr;
fprintf(sneaky_null, "oops");
}

noinline void readdir_null() {
Expand Down

0 comments on commit e851f2d

Please sign in to comment.