summaryrefslogtreecommitdiff
path: root/cpputil/databuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpputil/databuffer.h')
-rw-r--r--cpputil/databuffer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpputil/databuffer.h b/cpputil/databuffer.h
index 5ec035098..e981a7c22 100644
--- a/cpputil/databuffer.h
+++ b/cpputil/databuffer.h
@@ -34,7 +34,7 @@ class DataBuffer {
void Allocate(size_t l) {
delete[] data_;
- data_ = new uint8_t[l ? l : 1]; // Don't depend on new [0].
+ data_ = new uint8_t[l ? l : 1](); // Don't depend on new [0].
len_ = l;
}