summaryrefslogtreecommitdiff
path: root/db/log_reader.cc
diff options
context:
space:
mode:
Diffstat (limited to 'db/log_reader.cc')
-rw-r--r--db/log_reader.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/log_reader.cc b/db/log_reader.cc
index 48ae863..19c4df6 100644
--- a/db/log_reader.cc
+++ b/db/log_reader.cc
@@ -185,7 +185,7 @@ void Reader::ReportCorruption(uint64_t bytes, const char* reason) {
}
void Reader::ReportDrop(uint64_t bytes, const Status& reason) {
- if (reporter_ != NULL &&
+ if (reporter_ != nullptr &&
end_of_buffer_offset_ - buffer_.size() - bytes >= initial_offset_) {
reporter_->Corruption(static_cast<size_t>(bytes), reason);
}