Skip to content

Commit

Permalink
Fix an uninitialized value when building with gcc 13.2.0 (#4259)
Browse files Browse the repository at this point in the history
This fix already exists on master, so this is a backport
of just this fix onto 2.11.x.  This gets rid of a possible
use of an uninitialized value warning when building with
gcc 13.2.0

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
  • Loading branch information
clalancette authored Jan 19, 2024
1 parent 5e4583d commit 4d10bd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cpp/fastdds/core/policy/QosPoliciesSerializer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@ inline bool QosPoliciesSerializer<DataSharingQosPolicy>::read_content_from_cdr_m

for (size_t i = 0; i < num_domains; ++i)
{
uint64_t domain;
uint64_t domain {0};
valid &= fastrtps::rtps::CDRMessage::readUInt64(cdr_message, &domain);
qos_policy.add_domain_id(domain);
}
Expand Down

0 comments on commit 4d10bd5

Please sign in to comment.