diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-27 13:13:56 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-27 14:38:38 +0000 |
commit | 3848819cac3b951e60b42332ad87cd465b20d926 (patch) | |
tree | f10b98855bdab4d4790e7b0f1c49f58f96fe62d4 /basic | |
parent | fd7dbe5a15c3393ea9ad7c26267056743099c506 (diff) |
coverity#707652 Uninitialized scalar field
Change-Id: I6d561955454b0619255296704812b41a10ffe962
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/runtime/runtime.cxx | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/basic/source/runtime/runtime.cxx b/basic/source/runtime/runtime.cxx index 21ae531ebbc2..8e51eb0fe3c0 100644 --- a/basic/source/runtime/runtime.cxx +++ b/basic/source/runtime/runtime.cxx @@ -297,20 +297,25 @@ void SbiInstance::CalcBreakCallLevel( sal_uInt16 nFlags ) } SbiInstance::SbiInstance( StarBASIC* p ) + : pIosys(new SbiIoSystem) + , pDdeCtrl(new SbiDdeControl) + , pDllMgr(0) // on demand + , pBasic(p) + , pNumberFormatter(0) + , meFormatterLangType(LANGUAGE_DONTKNOW) + , meFormatterDateFormat(YMD) + , nStdDateIdx(0) + , nStdTimeIdx(0) + , nStdDateTimeIdx(0) + , nErr(0) + , nErl(0) + , bReschedule(true) + , bCompatibility(false) + , pRun(NULL) + , pNext(NULL) + , nCallLvl(0) + , nBreakCallLvl(0) { - pBasic = p; - pNext = NULL; - pRun = NULL; - pIosys = new SbiIoSystem; - pDdeCtrl = new SbiDdeControl; - pDllMgr = 0; // on demand - pNumberFormatter = 0; // on demand - nCallLvl = 0; - nBreakCallLvl = 0; - nErr = - nErl = 0; - bReschedule = sal_True; - bCompatibility = sal_False; } SbiInstance::~SbiInstance() |