]> OCCT Git - occt-copy.git/commitdiff
0025559: SIGSEGV in TKMath when computing max tolerance of curve on surface
authorvsr <vsr@opencascade.com>
Fri, 5 Dec 2014 14:54:47 +0000 (17:54 +0300)
committervsr <vsr@opencascade.com>
Mon, 8 Dec 2014 08:24:49 +0000 (11:24 +0300)
src/math/math_Recipes.cxx

index 975171ab284d04b55cf38bfd7d7cd0d77117847e..c97bcc95edc3eb0b15c83abfbb8b28d35a82eadd 100644 (file)
@@ -177,7 +177,7 @@ Standard_Integer LU_Decompose(math_Matrix& a,
                      math_Vector& vv,
                      Standard_Real    TINY) { 
 
-     Standard_Integer i, imax=0, j, k;
+     Standard_Integer i, imax=1, j, k;
      Standard_Real big, dum, sum, temp;
 
      Standard_Integer n = a.RowNumber();