minidump_dump: fix up init paths

Fix some build & test failures in the previous minidump_dump code.

BUG=chromium:598947

Change-Id: Ia8fce453265167368de96747a8a92af930e78245
Reviewed-on: https://chromium-review.googlesource.com/458881
Reviewed-by: Mike Frysinger <vapier@chromium.org>
This commit is contained in:
Mike Frysinger 2017-03-24 21:35:26 -04:00
parent e1b3620ec7
commit 7a8374fc4c
2 changed files with 5 additions and 3 deletions

View file

@ -1202,7 +1202,7 @@ MinidumpMemoryRegion::MinidumpMemoryRegion(Minidump* minidump)
: MinidumpObject(minidump),
descriptor_(NULL),
memory_(NULL) {
hexdump_width_ = minidump->HexdumpMode();
hexdump_width_ = minidump_ ? minidump_->HexdumpMode() : 0;
hexdump_ = hexdump_width_ != 0;
}
@ -4773,7 +4773,9 @@ Minidump::Minidump(istream& stream)
path_(),
stream_(&stream),
swap_(false),
valid_(false) {
valid_(false),
hexdump_(false),
hexdump_width_(0) {
}
Minidump::~Minidump() {

View file

@ -55,7 +55,7 @@ using google_breakpad::MinidumpBreakpadInfo;
struct Options {
Options()
: minidumpPath(), hexdump(false), hexdump_width(hexdump_width) {}
: minidumpPath(), hexdump(false), hexdump_width(16) {}
string minidumpPath;
bool hexdump;