diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-27 13:01:53 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-27 14:38:37 +0000 |
commit | 7acea5ae4ccdfba7745660e39e04aaabe4254629 (patch) | |
tree | 8d991b1d02286d12a22aa001de69284bd9f380bb /basic/source/comp/token.cxx | |
parent | a8d7c510b41d31321f3a88db6faa34a10803a6f1 (diff) |
coverity#707649 Uninitialized scalar field
Change-Id: I1a95a051463860dc9c7b087bfaf17f3b70f297ee
Diffstat (limited to 'basic/source/comp/token.cxx')
-rw-r--r-- | basic/source/comp/token.cxx | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/basic/source/comp/token.cxx b/basic/source/comp/token.cxx index d283f2e5ddd7..bc09744b7353 100644 --- a/basic/source/comp/token.cxx +++ b/basic/source/comp/token.cxx @@ -211,13 +211,19 @@ TokenLabelInfo::~TokenLabelInfo() // the constructor detects the length of the token table SbiTokenizer::SbiTokenizer( const OUString& rSrc, StarBASIC* pb ) - : SbiScanner( rSrc, pb ) + : SbiScanner(rSrc, pb) + , eCurTok(NIL) + , ePush(NIL) + , nPLine(0) + , nPCol1(0) + , nPCol2(0) + , bEof(false) + , bEos(true) + , bKeywords(true) + , bAs(false) + , bErrorIsSymbol(true) { pTokTable = aTokTable_Basic; - bEof = bAs = false; - eCurTok = NIL; - ePush = NIL; - bEos = bKeywords = bErrorIsSymbol = true; if( !nToken ) { const TokenTable *tp; |