summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortpaviot <tpaviot@gmail.com>2012-01-15 15:50:11 +0100
committertpaviot <tpaviot@gmail.com>2012-01-15 15:50:15 +0100
commitd5ec86f670ed0b2a4d9365b1cb90b0f6e7300225 (patch)
treea89eca2894e7ad08dba141bbcaab9ffc5c46f3e0
parentfe35e415015e203a76c72c26785ada5f140619e3 (diff)
downloadoce-d5ec86f670ed0b2a4d9365b1cb90b0f6e7300225.tar.gz
oce-d5ec86f670ed0b2a4d9365b1cb90b0f6e7300225.zip
[cppcheck-error-fix][uninitialized-variable]
[IntPatch/IntPatch_LineConstructor.cxx:1066]: (error) Uninitialized variable: utst1 [IntPatch/IntPatch_LineConstructor.cxx:1066]: (error) Uninitialized variable: vtst1 [IntPatch/IntPatch_LineConstructor.cxx:1067]: (error) Uninitialized variable: utst1 [IntPatch/IntPatch_LineConstructor.cxx:1068]: (error) Uninitialized variable: vtst1
-rw-r--r--src/IntPatch/IntPatch_LineConstructor.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/IntPatch/IntPatch_LineConstructor.cxx b/src/IntPatch/IntPatch_LineConstructor.cxx
index b9ee35e8..fb5a98ba 100644
--- a/src/IntPatch/IntPatch_LineConstructor.cxx
+++ b/src/IntPatch/IntPatch_LineConstructor.cxx
@@ -1062,7 +1062,7 @@ static void TestWLineToRLine(const IntPatch_SequenceOfLine& slinref,
// check that the middle point is on arc
(WLine->Point(midInd).*piParOnS)(utst,vtst);
if (midInd == ParamMinOnLine) {
- Standard_Real utst1,vtst1;
+ Standard_Real utst1=0.0,vtst1=0.0;
(WLine->Point(midInd+1).*piParOnS)(utst1,vtst1);
utst = (utst+utst1)*0.5;
vtst = (vtst+vtst1)*0.5;