Skip to content

Commit

Permalink
Fix bad pointer comparison
Browse files Browse the repository at this point in the history
Bug: None
Change-Id: I7f3709ee7e8b7e9e938850b1bbe24925e3e03c9b
Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/5300127
Reviewed-by: Mark Mentovai <[email protected]>
  • Loading branch information
speednoisemovement committed Feb 16, 2024
1 parent f80f288 commit a116906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/mac/dump_syms.cc
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ bool DumpSymbols::CreateEmptyModule(scoped_ptr<Module>& module) {
// In certain cases, it is possible that architecture info can't be reliably
// determined, e.g. new architectures that breakpad is unware of. In that
// case, avoid crashing and return false instead.
if (selected_arch_name == kUnknownArchName) {
if (strcmp(selected_arch_name, kUnknownArchName) == 0) {
return false;
}

Expand Down

0 comments on commit a116906

Please sign in to comment.