From e5d3dd8138e4f472a9b60f95caf7a8ac5e83f29c Mon Sep 17 00:00:00 2001 From: Robin Mills Date: Sun, 20 Jul 2014 21:10:00 +0000 Subject: [PATCH] CID: 1227096/7. Pointer not initialized in constructor. --- src/crwimage_int.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/crwimage_int.hpp b/src/crwimage_int.hpp index 3e9f01a2..2f666b90 100644 --- a/src/crwimage_int.hpp +++ b/src/crwimage_int.hpp @@ -357,9 +357,9 @@ namespace Exiv2 { //! @name Creators //@{ //! Default constructor - CiffDirectory() {} + CiffDirectory() : cc_(NULL) {} //! Constructor taking a tag and directory - CiffDirectory(uint16_t tag, uint16_t dir) : CiffComponent(tag, dir) {} + CiffDirectory(uint16_t tag, uint16_t dir) : CiffComponent(tag, dir), cc_(NULL) {} //! Virtual destructor virtual ~CiffDirectory();