summaryrefslogtreecommitdiff
path: root/sc/source/core/tool/interpr1.cxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-02-09 13:45:21 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-02-09 14:16:42 +0100
commit7f8b4e14d787ec648a3de69fd51dc90fcfc876d9 (patch)
treee46b2d07cb732a3821c37aaaec4a4b12e3bd1001 /sc/source/core/tool/interpr1.cxx
parent33c8b164257a481875dee41be8177bd4cd744dd1 (diff)
fix memcheck report about uninitialized fVal
Change-Id: I7ae3f6ce0499cc4fda885a13be09063c5b75559d
Diffstat (limited to 'sc/source/core/tool/interpr1.cxx')
-rw-r--r--sc/source/core/tool/interpr1.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx
index bbc71100d1e4..fbf564ffb79c 100644
--- a/sc/source/core/tool/interpr1.cxx
+++ b/sc/source/core/tool/interpr1.cxx
@@ -1222,7 +1222,7 @@ void ScInterpreter::ScAnd()
double fVal;
sal_uInt16 nErr = 0;
ScValueIterator aValIter( pDok, aRange );
- if ( aValIter.GetFirst( fVal, nErr ) )
+ if ( aValIter.GetFirst( fVal, nErr ) && nErr == 0 )
{
bHaveValue = true;
do