Skip to content

Commit

Permalink
Fix issue on uninitialized var detected with valgrind
Browse files Browse the repository at this point in the history
  • Loading branch information
fspindle committed Dec 17, 2024
1 parent a5604dd commit 291985d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/vision/src/pose-estimation/vpPoseLagrange.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ void vpPose::poseLagrangePlan(vpHomogeneousMatrix &cMo, bool *p_isPlan, double *
const unsigned int index_5 = 5;

// determination of the plane equation a X + b Y + c Z + d = 0
double a, b, c, d;
double a = 0, b = 0, c = 0, d = 0;

// Checking if coplanar has already been called and if the plan coefficients have been given
bool p_isplan_and_p_a_no_null = (p_isPlan != nullptr) && (p_a != nullptr);
Expand Down

0 comments on commit 291985d

Please sign in to comment.