mirror of
https://github.com/yuzu-emu/breakpad
synced 2024-11-23 17:23:48 +00:00
Fix clang compilation error introduced in r1380.
Fixes: .../linux_dumper.cc:308:25: error: address of array 'module->name' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion] module->name && module->name[0] == '/' && ~~~~~~~~^~~~ BUG=chromium:394703 R=rmcilroy@chromium.org Review URL: https://breakpad.appspot.com/5724002 Patch from Simon Baldwin <simonb@chromium.org>. git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1384 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
7a6d769eb1
commit
b5c662fcfe
1 changed files with 1 additions and 1 deletions
|
@ -305,7 +305,7 @@ bool LinuxDumper::EnumerateMappings() {
|
|||
MappingInfo* module = mappings_.back();
|
||||
if ((start_addr == module->start_addr + module->size) &&
|
||||
module->exec &&
|
||||
module->name && module->name[0] == '/' &&
|
||||
module->name[0] == '/' &&
|
||||
offset == 0 && my_strncmp(i2,
|
||||
kReservedFlags,
|
||||
sizeof(kReservedFlags) - 1) == 0) {
|
||||
|
|
Loading…
Reference in a new issue