summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorPedro Giffuni <pfg@apache.org>2015-12-02 04:34:56 +0000
committerPedro Giffuni <pfg@apache.org>2015-12-02 04:34:56 +0000
commit669fe9a61644b70b9299e78aa65b667b515c7fc7 (patch)
treedc3a6ba1b1e2757d942ac5a4ad3c92e7e6b080c0 /basic
parent811c746985a72339ad8a1b78dae45738a030ecb9 (diff)
Uninitialized scalar variable
CID: 707497
Notes
Notes: prefer: 9a55875ef4c466a4f176c3896c3cf7232b56c0bc
Diffstat (limited to 'basic')
-rw-r--r--basic/source/runtime/methods.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx
index 8e480668f3aa..e150ab2c78b7 100644
--- a/basic/source/runtime/methods.cxx
+++ b/basic/source/runtime/methods.cxx
@@ -1986,7 +1986,7 @@ RTLFUNC(DateValue)
SbiInstance::PrepareNumberFormatter( pFormatter, n, n, n );
}
- sal_uInt32 nIndex;
+ sal_uInt32 nIndex = 0;
double fResult;
String aStr( rPar.Get(1)->GetString() );
sal_Bool bSuccess = pFormatter->IsNumberFormat( aStr, nIndex, fResult );