From 750eaa085ffd697e59405bd070d291b0e4347753 Mon Sep 17 00:00:00 2001 From: Miguel Company Date: Thu, 26 Sep 2024 08:08:41 +0200 Subject: [PATCH] Refs #21751. Document else. Signed-off-by: Miguel Company --- src/cpp/rtps/messages/MessageReceiver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpp/rtps/messages/MessageReceiver.cpp b/src/cpp/rtps/messages/MessageReceiver.cpp index 3ef71893b3e..110e4ccb07b 100644 --- a/src/cpp/rtps/messages/MessageReceiver.cpp +++ b/src/cpp/rtps/messages/MessageReceiver.cpp @@ -874,7 +874,7 @@ bool MessageReceiver::proc_Submsg_Data( ch.serializedPayload.length = payload_size; ch.serializedPayload.max_size = payload_size; } - else + else // keyFlag would be true since we are inside an if (dataFlag || keyFlag) { if (payload_size <= PARAMETER_KEY_HASH_LENGTH) {