Default initialyze DataBuf::pData_ so that valgrind does not complain
This commit is contained in:
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);
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user