summaryrefslogtreecommitdiffstats
path: root/net/base
diff options
context:
space:
mode:
Diffstat (limited to 'net/base')
-rw-r--r--net/base/io_buffer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/base/io_buffer.cc b/net/base/io_buffer.cc
index db2bffb..eb7094b 100644
--- a/net/base/io_buffer.cc
+++ b/net/base/io_buffer.cc
@@ -13,7 +13,7 @@ IOBuffer::IOBuffer(int buffer_size) {
data_ = new char[buffer_size];
}
void ReusedIOBuffer::SetOffset(int offset) {
- DCHECK(offset > 0 && offset < size_);
+ DCHECK(offset >= 0 && offset < size_);
data_ = base_->data() + offset;
}