diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-08 12:39:13 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-08 14:15:54 +0000 |
commit | 6da0dc447cb2c5c3a6cd80298b4984ba36732b1e (patch) | |
tree | eec67bdf73a7eca9e2ddc211e7ca80ea89152e4b /vcl | |
parent | 15ff1109d25c9d89f6fcba6c10ce1a02908d1480 (diff) |
coverity#1169872 Uninitialized scalar variable
Change-Id: I797e25c6cf23f3de6e812096574be8d4bce41338
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/filter/sgfbram.cxx | 5 | ||||
-rw-r--r-- | vcl/source/filter/sgfbram.hxx | 1 |
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 |