summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-08 12:39:13 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-08 14:15:54 +0000
commit6da0dc447cb2c5c3a6cd80298b4984ba36732b1e (patch)
treeeec67bdf73a7eca9e2ddc211e7ca80ea89152e4b /vcl
parent15ff1109d25c9d89f6fcba6c10ce1a02908d1480 (diff)
coverity#1169872 Uninitialized scalar variable
Change-Id: I797e25c6cf23f3de6e812096574be8d4bce41338
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/filter/sgfbram.cxx5
-rw-r--r--vcl/source/filter/sgfbram.hxx1
2 files changed, 6 insertions, 0 deletions
diff --git a/vcl/source/filter/sgfbram.cxx b/vcl/source/filter/sgfbram.cxx
index c9ac38865640..94fd72ada756 100644
--- a/vcl/source/filter/sgfbram.cxx
+++ b/vcl/source/filter/sgfbram.cxx
@@ -27,6 +27,11 @@
#include "sgffilt.hxx"
#include "sgfbram.hxx"
+SgfHeader::SgfHeader()
+{
+ memset( this, 0, sizeof( SgfHeader ) );
+}
+
SvStream& ReadSgfHeader(SvStream& rIStream, SgfHeader& rHead)
{
rIStream.Read((char*)&rHead.Magic,SgfHeaderSize);
diff --git a/vcl/source/filter/sgfbram.hxx b/vcl/source/filter/sgfbram.hxx
index cd34217edc9c..183eddf90e87 100644
--- a/vcl/source/filter/sgfbram.hxx
+++ b/vcl/source/filter/sgfbram.hxx
@@ -58,6 +58,7 @@ public:
sal_uInt32 GetOffset();
friend SvStream& ReadSgfHeader(SvStream& rIStream, SgfHeader& rHead);
bool ChkMagic();
+ SgfHeader();
};
#define SgfEntrySize 22