summaryrefslogtreecommitdiffstats
path: root/chrome/common/metrics_log_manager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/metrics_log_manager.cc')
-rw-r--r--chrome/common/metrics_log_manager.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/common/metrics_log_manager.cc b/chrome/common/metrics_log_manager.cc
index 37a9e4b..960672a 100644
--- a/chrome/common/metrics_log_manager.cc
+++ b/chrome/common/metrics_log_manager.cc
@@ -105,7 +105,7 @@ void MetricsLogManager::LoadPersistedUnsentLogs() {
void MetricsLogManager::CompressStagedLog() {
int text_size = staged_log_->GetEncodedLogSize();
std::string staged_log_text;
- // Leave room for the NULL terminator.
+ DCHECK_GT(text_size, 0);
staged_log_->GetEncodedLog(WriteInto(&staged_log_text, text_size + 1),
text_size);