diff --git a/rmw_fastrtps_shared_cpp/src/rmw_get_topic_endpoint_info.cpp b/rmw_fastrtps_shared_cpp/src/rmw_get_topic_endpoint_info.cpp index a44943dac..faec9b365 100644 --- a/rmw_fastrtps_shared_cpp/src/rmw_get_topic_endpoint_info.cpp +++ b/rmw_fastrtps_shared_cpp/src/rmw_get_topic_endpoint_info.cpp @@ -292,7 +292,6 @@ _get_info_by_topic( for (auto i = 0u; i < count; i++) { participants_info->info_array[i] = topic_endpoint_info_vector.at(i); } - participants_info->count = count; } return RMW_RET_OK; }