Skip to content

Commit

Permalink
Sketcher: Fix uninitialized scalar field in ctor
Browse files Browse the repository at this point in the history
Fixes Coverity issue:
CID 316539 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
uninit_member: Non-static class member lastHasPartialRedundancies is not initialized in this constructor nor in any functions that it calls.
  • Loading branch information
hyarion authored and wwmayer committed Feb 11, 2021
1 parent 0641e24 commit 10b0867
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Mod/Sketcher/App/SketchObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ SketchObject::SketchObject()
lastDoF=0;
lastHasConflict=false;
lastHasRedundancies=false;
lastHasPartialRedundancies=false;
lastHasMalformedConstraints=false;
lastSolverStatus=0;
lastSolveTime=0;
Expand Down

0 comments on commit 10b0867

Please sign in to comment.