Kaydet (Commit) 65af1f30 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1169866 Uninitialized scalar variable

Change-Id: I0259c798bfff5034059fd3ef6a0463e5fbce409b
üst 562fdfc9
......@@ -57,6 +57,11 @@ bool SgfHeader::ChkMagic()
sal_uInt32 SgfHeader::GetOffset()
{ return sal_uInt32(OfsLo)+0x00010000*sal_uInt32(OfsHi); }
SgfEntry::SgfEntry()
{
memset( this, 0, sizeof( SgfEntry ) );
}
SvStream& ReadSgfEntry(SvStream& rIStream, SgfEntry& rEntr)
{
rIStream.Read((char*)&rEntr.Typ,SgfEntrySize);
......
......@@ -73,6 +73,7 @@ public:
sal_uInt32 GetOffset();
friend SvStream& ReadSgfEntry(SvStream& rIStream, SgfEntry& rEntr);
SgfEntry();
};
#define SgfVectorSize 10
......
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