diff options
author | tpaviot <tpaviot@gmail.com> | 2012-01-15 15:50:11 +0100 |
---|---|---|
committer | tpaviot <tpaviot@gmail.com> | 2012-01-15 15:50:15 +0100 |
commit | d5ec86f670ed0b2a4d9365b1cb90b0f6e7300225 (patch) | |
tree | a89eca2894e7ad08dba141bbcaab9ffc5c46f3e0 | |
parent | fe35e415015e203a76c72c26785ada5f140619e3 (diff) | |
download | oce-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.cxx | 2 |
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; |