ofz: Use-of-uninitialized-value
Change-Id: Ia19985b7c042e6ab9608220343e3b678890f7215 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128638 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
parent
ce8745f01a
commit
e944307088
1 changed files with 4 additions and 9 deletions
|
@ -238,20 +238,15 @@ XFDrawGroup* LwpSdwGroupLoaderV0102::CreateDrawGroupObject()
|
|||
{
|
||||
//flag
|
||||
unsigned char BinSignature[2];
|
||||
m_pStream->ReadBytes(BinSignature, 2);
|
||||
if (BinSignature[0] != 'S' || BinSignature[1] != 'M')
|
||||
{
|
||||
assert(false);
|
||||
if (m_pStream->ReadBytes(BinSignature, 2) != 2)
|
||||
return nullptr;
|
||||
if (BinSignature[0] != 'S' || BinSignature[1] != 'M')
|
||||
return nullptr;
|
||||
}
|
||||
//version
|
||||
unsigned short nVersion;
|
||||
unsigned short nVersion(0);
|
||||
m_pStream->ReadUInt16(nVersion);
|
||||
if (nVersion<0x0102)
|
||||
{
|
||||
assert(false);
|
||||
return nullptr;
|
||||
}
|
||||
// topObj, botObj
|
||||
m_pStream->SeekRel(4);
|
||||
//record count
|
||||
|
|
Loading…
Reference in a new issue