diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-10 20:37:24 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-10 21:13:02 +0100 |
commit | 1c40075cac0c4ceaf5aafc9ffb15fbaf8d1e5e0a (patch) | |
tree | 4c1090fe4cb76fc3b50968f386ea0158810c0a52 /rsc | |
parent | 11dbe5eede868303dcc7ea4931040adea8ac14c3 (diff) |
coverity#984106 Uninitialized scalar field
Change-Id: Idf7c0e9a71b53990155f962628d0f79659f9ffec
Diffstat (limited to 'rsc')
-rw-r--r-- | rsc/source/tools/rscdef.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rsc/source/tools/rscdef.cxx b/rsc/source/tools/rscdef.cxx index c2500f131322..7ecbe58c45fb 100644 --- a/rsc/source/tools/rscdef.cxx +++ b/rsc/source/tools/rscdef.cxx @@ -129,6 +129,7 @@ RscDefine::RscDefine( sal_uLong lKey, const OString& rDefName, sal_Int32 lDefId RscDefine::RscDefine( sal_uLong lKey, const OString& rDefName, RscExpression * pExpression ) : StringNode( rDefName ) + , lId(0) { nRefCount = 0; lFileKey = lKey; @@ -138,8 +139,7 @@ RscDefine::RscDefine( sal_uLong lKey, const OString& rDefName, RscDefine::~RscDefine() { - if( pExp ) - delete pExp; + delete pExp; if( nRefCount ) RscExit( 14 ); } |