From 01bd62352fe2b27ffd09cbff041a4b76a753571f Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 6 Jul 2017 12:17:39 +0100 Subject: valgrind: use of uninitialized value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I09279bf27eaa227ab6cdb74e79a1d03e424bb8db Reviewed-on: https://gerrit.libreoffice.org/39656 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- hwpfilter/source/hpara.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3