diff --git a/modules/core/src/image/vpCannyEdgeDetection.cpp b/modules/core/src/image/vpCannyEdgeDetection.cpp index d023df5150..1cfe10c271 100644 --- a/modules/core/src/image/vpCannyEdgeDetection.cpp +++ b/modules/core/src/image/vpCannyEdgeDetection.cpp @@ -255,7 +255,7 @@ vpImage vpCannyEdgeDetection::detect(const vpImage &I) { #if !defined(_WIN32) && (defined(__unix__) || defined(__unix) || (defined(__APPLE__) && defined(__MACH__))) // UNIX - rlim_t initialStackSize; + rlim_t initialStackSize = 0; struct rlimit rl; int result; if (m_minStackSize > 0) {