We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6374d8 commit 0fb5627Copy full SHA for 0fb5627
rclcpp/src/rclcpp/init_options.cpp
@@ -102,7 +102,7 @@ InitOptions::get_rcl_init_options() const
102
void
103
InitOptions::use_default_domain_id()
104
{
105
- size_t domain_id;
+ size_t domain_id = RCL_DEFAULT_DOMAIN_ID;
106
rcl_ret_t ret = rcl_get_default_domain_id(&domain_id);
107
if (RCL_RET_OK != ret) {
108
rclcpp::exceptions::throw_from_rcl_error(ret, "failed to get default domain id");
0 commit comments