From ebbcdf5ff7106691ec3987fe4e59735fa0f2502f Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 1 Jul 2020 19:50:40 +0200 Subject: [PATCH] Sketcher: [skip ci] fixes -Wmaybe-uninitialized --- src/Mod/Sketcher/App/SketchObject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Sketcher/App/SketchObject.cpp b/src/Mod/Sketcher/App/SketchObject.cpp index 2f4bfc4a41..03b94867b6 100644 --- a/src/Mod/Sketcher/App/SketchObject.cpp +++ b/src/Mod/Sketcher/App/SketchObject.cpp @@ -5203,7 +5203,7 @@ bool SketchObject::modifyBSplineKnotMultiplicity(int GeoId, int knotIndex, int m if( knotIndex > bsp->countKnots() || knotIndex < 1 ) // knotindex in OCC 1 -> countKnots THROWMT(Base::ValueError,QT_TRANSLATE_NOOP("Exceptions", "The knot index is out of bounds. Note that in accordance with OCC notation, the first knot has index 1 and not zero.")) - Part::GeomBSplineCurve *bspline; + Part::GeomBSplineCurve *bspline = nullptr; int curmult = bsp->getMultiplicity(knotIndex);