From e59a13d514b1216817b9c1118f802c27e8500c64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Hern=C3=A1ndez=20Cordero?= Date: Wed, 17 Apr 2024 10:48:17 +0200 Subject: [PATCH] Removed warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Alejandro Hernández Cordero --- src/cpp/fastdds/core/policy/ParameterList.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cpp/fastdds/core/policy/ParameterList.cpp b/src/cpp/fastdds/core/policy/ParameterList.cpp index fa8464ae48e..badacbea420 100644 --- a/src/cpp/fastdds/core/policy/ParameterList.cpp +++ b/src/cpp/fastdds/core/policy/ParameterList.cpp @@ -139,8 +139,8 @@ bool ParameterList::read_guid_from_cdr_msg( fastrtps::rtps::GUID_t& guid) { bool valid = false; - uint16_t pid; - uint16_t plength; + uint16_t pid = 0; + uint16_t plength = 0; while (msg.pos < msg.length) { valid = true;