From 2b74ad4feb478781dffaefc81af8c7e80e50cb90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20D=C3=ADaz=20M=C3=A1s?= Date: Mon, 10 Sep 2018 13:05:09 +0200 Subject: [PATCH] Default initialyze DataBuf::pData_ so that valgrind does not complain --- include/exiv2/types.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); /*!