Skip to content

Commit

Permalink
rmw_publisher_options should be initialized.
Browse files Browse the repository at this point in the history
Signed-off-by: ChenYing Kuo <evshary@gmail.com>
  • Loading branch information
evshary committed Apr 30, 2020
1 parent 1c943d1 commit f9923b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rclcpp/include/rclcpp/publisher_options.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ struct PublisherOptionsWithAllocator : public PublisherOptionsBase
// Apply payload to rcl_publisher_options if necessary.
if (rmw_implementation_payload && rmw_implementation_payload->has_been_customized()) {
rmw_implementation_payload->modify_rmw_publisher_options(result.rmw_publisher_options);
} else {
result.rmw_publisher_options = rmw_get_default_publisher_options();
}

return result;
Expand Down

0 comments on commit f9923b7

Please sign in to comment.