diff --git a/cpputil/databuffer.h b/cpputil/databuffer.h index 5ec0350986..e981a7c223 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; }