summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2014-01-30 19:27:37 +0100
committerEike Rathke <erack@redhat.com>2014-01-30 19:27:37 +0100
commitd39525f1cfef7a01e45adc9ce5e6e8ebba4250c5 (patch)
tree703134f4bd21cd6de021e10abafbb8646587c1ef
parent41a859234eac6126693393ff64efc7bfcdec9c54 (diff)
init 'fLastPos' [-Werror=maybe-uninitialized], fdo#73146 follow-up
Change-Id: I77d91bbcd600ae209799d2139c3510697e922730
-rw-r--r--sc/source/core/tool/interpr3.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/core/tool/interpr3.cxx b/sc/source/core/tool/interpr3.cxx
index 03f6c5b770e8..4a01b0707e42 100644
--- a/sc/source/core/tool/interpr3.cxx
+++ b/sc/source/core/tool/interpr3.cxx
@@ -3849,7 +3849,8 @@ void ScInterpreter::ScRank( bool bAverage )
PushNoValue();
else
{
- double fLastPos, fFirstPos = -1.0;
+ double fLastPos = 0;
+ double fFirstPos = -1.0;
bool bFinished = false;
SCSIZE i;
for ( i = 0; i < nSize && !bFinished && !nGlobalError; i++ )