summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-07-06 12:17:39 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-07-06 16:22:00 +0200
commit01bd62352fe2b27ffd09cbff041a4b76a753571f (patch)
treee4cc825a5772c77bdf56b06893aa7a6fff3e67e7
parentcc8a0de500b2abdef804b2d27aba36f7b7c95cab (diff)
valgrind: use of uninitialized value
Change-Id: I09279bf27eaa227ab6cdb74e79a1d03e424bb8db Reviewed-on: https://gerrit.libreoffice.org/39656 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--hwpfilter/source/hpara.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/hwpfilter/source/hpara.cxx b/hwpfilter/source/hpara.cxx
index f4e41c256347..e31a8b8005ae 100644
--- a/hwpfilter/source/hpara.cxx
+++ b/hwpfilter/source/hpara.cxx
@@ -88,7 +88,6 @@ HWPPara::~HWPPara()
bool HWPPara::Read(HWPFile & hwpf, unsigned char flag)
{
- unsigned char same_cshape;
int ii;
scflag = flag;
// Paragraph Information
@@ -146,6 +145,7 @@ bool HWPPara::Read(HWPFile & hwpf, unsigned char flag)
cshapep[ii].reset(new CharShape);
memset(cshapep[ii].get(), 0, sizeof(CharShape));
+ unsigned char same_cshape(0);
hwpf.Read1b(&same_cshape, 1);
if (!same_cshape)
{