We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6582ec5 commit eb52759Copy full SHA for eb52759
src/cpp/fastdds/core/policy/ParameterList.cpp
@@ -117,14 +117,14 @@ bool ParameterList::read_guid_from_cdr_msg(
117
fastrtps::rtps::GUID_t& guid)
118
{
119
bool valid = false;
120
- uint16_t pid;
121
- uint16_t plength;
+ uint16_t pid = 0;
+ uint16_t plength = 0;
122
while (msg.pos < msg.length)
123
124
valid = true;
125
valid &= fastrtps::rtps::CDRMessage::readUInt16(&msg, &pid);
126
valid &= fastrtps::rtps::CDRMessage::readUInt16(&msg, &plength);
127
- if ((pid == PID_SENTINEL) || !valid)
+ if (!valid || (pid == PID_SENTINEL))
128
129
break;
130
}
0 commit comments