diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-08 12:42:28 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-08 14:15:54 +0000 |
commit | 562fdfc9b481d45bf8cbf55c7d693b38a3f12b8f (patch) | |
tree | 59e7118b2cdbe6b38c16fdf810089e1ee27200bf /vcl | |
parent | 6da0dc447cb2c5c3a6cd80298b4984ba36732b1e (diff) |
coverity#1169868 Uninitialized scalar variable
Change-Id: I65c2c8fcbf83d8a93a838873c412d70f7d9196ef
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/filter/sgvmain.cxx | 4 | ||||
-rw-r--r-- | vcl/source/filter/sgvmain.hxx | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/vcl/source/filter/sgvmain.cxx b/vcl/source/filter/sgvmain.cxx index b90c60175e07..28ef1fae7f3a 100644 --- a/vcl/source/filter/sgvmain.cxx +++ b/vcl/source/filter/sgvmain.cxx @@ -157,6 +157,10 @@ void DtHdOverSeek(SvStream& rInp) rInp.Seek(FPos); } +PageType::PageType() +{ + memset( this, 0, sizeof( PageType ) ); +} SvStream& ReadPageType(SvStream& rIStream, PageType& rPage) { diff --git a/vcl/source/filter/sgvmain.hxx b/vcl/source/filter/sgvmain.hxx index 3c58f128e512..e9272b3b5260 100644 --- a/vcl/source/filter/sgvmain.hxx +++ b/vcl/source/filter/sgvmain.hxx @@ -67,6 +67,7 @@ public: sal_uInt8 LnAnzV; UCHAR PgName[32]; // page name friend SvStream& ReadPageType(SvStream& rIStream, PageType& rPage); + PageType(); }; enum ObjArtType {ObjStrk,ObjRect,ObjPoly,ObjCirc,ObjSpln, |