summaryrefslogtreecommitdiff
path: root/src/logging.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/logging.cc')
-rw-r--r--src/logging.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/logging.cc b/src/logging.cc
index f962e41ccc..4aacd3b7fc 100644
--- a/src/logging.cc
+++ b/src/logging.cc
@@ -74,6 +74,11 @@ void HexDump::Dump(std::ostream& os) const {
return;
}
+ if (address_ == NULL) {
+ os << "00000000:";
+ return;
+ }
+
static const char gHexDigit[] = "0123456789abcdef";
const unsigned char* addr = reinterpret_cast<const unsigned char*>(address_);
char out[76]; /* exact fit */