Skip to content

Commit

Permalink
Refs #19347: Initialize uint32_t variable
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Ponz <eduardoponz@eprosima.com>
  • Loading branch information
EduPonz committed Aug 7, 2023
1 parent 4d3f784 commit be4e5bb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/cpp/rtps/builtin/liveliness/WLPListener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ namespace eprosima {
namespace fastrtps {
namespace rtps {


WLPListener::WLPListener(
WLP* plwp)
: mp_WLP(plwp)
Expand Down Expand Up @@ -92,7 +91,7 @@ void WLPListener::onNewCacheChangeAdded(
{
constexpr uint32_t participant_msg_data_kind_pos = 16;
constexpr uint32_t encapsulation_pos = 1;
uint32_t data_length;
uint32_t data_length = 0;

// Extract encapsulation from the second byte of the representation header. Done prior to
// creating the CDRMessage_t, as the CDRMessage_t ctor uses it for its own state.
Expand Down

0 comments on commit be4e5bb

Please sign in to comment.