Kaydet (Commit) 01bd6235 authored tarafından Caolán McNamara's avatar Caolán McNamara

valgrind: use of uninitialized value

Change-Id: I09279bf27eaa227ab6cdb74e79a1d03e424bb8db
Reviewed-on: https://gerrit.libreoffice.org/39656Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst cc8a0de5
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment