From 291985dd42463d20ebe065e30a7b8b6d2ebd1a6c Mon Sep 17 00:00:00 2001 From: Fabien Spindler Date: Tue, 17 Dec 2024 18:31:03 +0100 Subject: [PATCH] Fix issue on uninitialized var detected with valgrind --- modules/vision/src/pose-estimation/vpPoseLagrange.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/vision/src/pose-estimation/vpPoseLagrange.cpp b/modules/vision/src/pose-estimation/vpPoseLagrange.cpp index 2ef27c04e4..247cfd7467 100644 --- a/modules/vision/src/pose-estimation/vpPoseLagrange.cpp +++ b/modules/vision/src/pose-estimation/vpPoseLagrange.cpp @@ -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);