Skip to content

Commit

Permalink
Refs 11562. Fix warning.
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
  • Loading branch information
MiguelCompany committed May 13, 2021
1 parent f8798d9 commit 4baa9eb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/cpp/rtps/transport/TCPTransportInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -868,12 +868,11 @@ bool receive_header(
{
// Cleanup header
octet* ptr = tcp_header.address();
char* begin = (char*)ptr;
memset(ptr, 0, sizeof(TCPHeader));

// Prepare read position
octet* read_pos = ptr;
size_t bytes_needed = 4; // TCPHeader::size();
size_t bytes_needed = 4;

// Wait for sync
while (bytes_needed > 0)
Expand Down

0 comments on commit 4baa9eb

Please sign in to comment.