diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-06 14:48:27 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-06 15:11:58 +0000 |
commit | 5d4b38c4a284d610583a283a6f405d962673ff8f (patch) | |
tree | 0af4961e892211a75364e3adc790057e9b685707 /hwpfilter/source/htags.cxx | |
parent | b4075c9efd229e1ec7b38e821a63e7989ae46c52 (diff) |
coverity#707901 Uninitialized scalar field
Change-Id: Ib8d046e279e76a94cf2198ba35bb70d074a3e350
Diffstat (limited to 'hwpfilter/source/htags.cxx')
-rw-r--r-- | hwpfilter/source/htags.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hwpfilter/source/htags.cxx b/hwpfilter/source/htags.cxx index 938df44de989..6283e77ac479 100644 --- a/hwpfilter/source/htags.cxx +++ b/hwpfilter/source/htags.cxx @@ -78,18 +78,18 @@ bool EmPicture::Read(HWPFile & hwpf) OlePicture::OlePicture(int tsize) + : signature(0) + , pis(NULL) { size = tsize - 4; if (size <= 0) return; -#ifdef WIN32 - pis = 0L; -#else +#ifndef WIN32 pis = new char[size]; #endif }; -OlePicture::~OlePicture(void) +OlePicture::~OlePicture() { #ifdef WIN32 if( pis ) |