diff --git a/include/exiv2/types.hpp b/include/exiv2/types.hpp index f68303f6..56533a36 100644 --- a/include/exiv2/types.hpp +++ b/include/exiv2/types.hpp @@ -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); /*!