Default initialyze DataBuf::pData_ so that valgrind does not complain

v0.27.3
Luis Díaz Más 7 years ago committed by Dan Čermák
parent 67ec90bdab
commit 2b74ad4feb

@ -211,7 +211,7 @@ namespace Exiv2 {
//! Default constructor
DataBuf() : pData_(0), size_(0) {}
//! Constructor with an initial buffer size
explicit DataBuf(long size) : pData_(new byte[size]), size_(size) {}
explicit DataBuf(long size) : pData_(new byte[size]()), size_(size) {}
//! Constructor, copies an existing buffer
DataBuf(const byte* pData, long size);
/*!

Loading…
Cancel
Save