aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/processor/minidump.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/processor/minidump.cc b/src/processor/minidump.cc
index 75b6b455..f0075eb2 100644
--- a/src/processor/minidump.cc
+++ b/src/processor/minidump.cc
@@ -2654,12 +2654,9 @@ MinidumpModuleList::MinidumpModuleList(Minidump* minidump)
modules_(NULL),
module_count_(0) {
MDOSPlatform platform;
- if (minidump_->GetPlatform(&platform)) {
- if (platform == MD_OS_ANDROID) {
- range_map_->SetMergeStrategy(MergeRangeStrategy::kTruncateUpper);
- } else if (platform == MD_OS_LINUX) {
- range_map_->SetMergeStrategy(MergeRangeStrategy::kTruncateLower);
- }
+ if (minidump_->GetPlatform(&platform) &&
+ (platform == MD_OS_ANDROID || platform == MD_OS_LINUX)) {
+ range_map_->SetMergeStrategy(MergeRangeStrategy::kTruncateLower);
}
}