summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-05-10 13:07:03 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-05-10 21:12:56 +0100
commit89d56e950122673b53b653a9776a1053b5baa0c1 (patch)
tree74f51f75303141a76b15739f4feec94b4b86a05f /sc
parent061ef06e04d530504d906c1b4b622d2a72f6cd53 (diff)
coverity#708055 Uninitialized scalar field
Change-Id: Id699d408faca97360a7ae9cb27d0d425dff47750
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/inc/scflt.hxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/sc/source/filter/inc/scflt.hxx b/sc/source/filter/inc/scflt.hxx
index 19e331c3bdae..fff1d486bcc7 100644
--- a/sc/source/filter/inc/scflt.hxx
+++ b/sc/source/filter/inc/scflt.hxx
@@ -223,6 +223,13 @@ struct Sc10Color
sal_uInt8 Green;
sal_uInt8 Red;
bool operator==( const Sc10Color& rColor ) const;
+ Sc10Color()
+ : Dummy(0)
+ , Blue(0)
+ , Green(0)
+ , Red(0)
+ {
+ }
};
// Blockbeschreibung
@@ -334,6 +341,12 @@ struct Sc10SheetProtect
sal_Char PassWord[16];
sal_uInt16 Flags;
sal_uInt8 Protect;
+ Sc10SheetProtect()
+ : Flags(0)
+ , Protect(0)
+ {
+ memset(PassWord, 0, sizeof(PassWord));
+ }
};
// Dateikopf StarCalc 1.0 Datei