summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-08 12:58:05 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-08 14:15:55 +0000
commit06410bdf1f05db344a5b2ab9275575fed5bded53 (patch)
treee84b4eb5c0a1ed19f97a508d030c1d50f788f1e8
parent2ee427f90ec8261a95fc5fef5e27f8be0adda7cd (diff)
coverity#1169879 Uninitialized scalar field
Change-Id: I9638bbda4d87e6d86ed1baa2f29331321f11d862
-rw-r--r--framework/source/services/substitutepathvars.cxx13
1 files changed, 10 insertions, 3 deletions
diff --git a/framework/source/services/substitutepathvars.cxx b/framework/source/services/substitutepathvars.cxx
index b12331f4c693..d651238ad293 100644
--- a/framework/source/services/substitutepathvars.cxx
+++ b/framework/source/services/substitutepathvars.cxx
@@ -86,12 +86,19 @@ enum OperatingSystem
struct SubstituteRule
{
- SubstituteRule() {}
+ SubstituteRule()
+ : aEnvType(ET_UNKNOWN)
+ {}
+
SubstituteRule( const OUString& aVarName,
const OUString& aValue,
const com::sun::star::uno::Any& aVal,
- EnvironmentType aType ) :
- aSubstVariable( aVarName ), aSubstValue( aValue ), aEnvValue( aVal ), aEnvType( aType ) {}
+ EnvironmentType aType )
+ : aSubstVariable(aVarName)
+ , aSubstValue(aValue)
+ , aEnvValue(aVal)
+ , aEnvType(aType)
+ {}
OUString aSubstVariable;
OUString aSubstValue;