summaryrefslogtreecommitdiffstats
path: root/net/base
diff options
context:
space:
mode:
Diffstat (limited to 'net/base')
-rw-r--r--net/base/io_buffer.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/net/base/io_buffer.cc b/net/base/io_buffer.cc
index 4aa469a..9ad0570 100644
--- a/net/base/io_buffer.cc
+++ b/net/base/io_buffer.cc
@@ -20,11 +20,9 @@ void DrainableIOBuffer::SetOffset(int bytes) {
}
void GrowableIOBuffer::SetCapacity(int capacity) {
- CHECK(capacity >= 0);
+ DCHECK(capacity >= 0);
// realloc will crash if it fails.
real_data_.reset(static_cast<char*>(realloc(real_data_.release(), capacity)));
- // Sanity check.
- CHECK(real_data_.get() != NULL || capacity == 0);
capacity_ = capacity;
if (offset_ > capacity)
set_offset(capacity);