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

This commit is contained in:
Luis Díaz Más
2018-09-10 13:05:09 +02:00
committed by Dan Čermák
parent 67ec90bdab
commit 2b74ad4feb
+1 -1
View File
@@ -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);
/*!