Skip to content

Commit d3c3265

Browse files
authored
Correctly detect empty messages (#33)
Signed-off-by: Andrea Sorbini <[email protected]>
1 parent 08e456d commit d3c3265

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rmw_connextdds_common/src/common/rmw_type_support.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ void RMW_Connext_MessageTypeSupport::type_info(
683683

684684
unbounded = !full_bounded;
685685

686-
if (unbounded && serialized_size_max == 0) {
686+
if (full_bounded && serialized_size_max == 0) {
687687
/* Empty message */
688688
empty = true;
689689
serialized_size_max = 1;

0 commit comments

Comments
 (0)