Skip to content

Commit 462acec

Browse files
Fix -Wmaybe-uninitialized warning (#185)
Co-authored-by: Alexis Tsogias <[email protected]>
1 parent 3ecc1fc commit 462acec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/web_video_server_node.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ int main(int argc, char ** argv)
3737
auto node = std::make_shared<web_video_server::WebVideoServer>(rclcpp::NodeOptions());
3838

3939
node->declare_parameter("ros_threads", 2);
40-
int ros_threads;
40+
int ros_threads{2};
4141
node->get_parameter("ros_threads", ros_threads);
4242
rclcpp::executors::MultiThreadedExecutor spinner(rclcpp::ExecutorOptions(), ros_threads);
4343
spinner.add_node(node);

0 commit comments

Comments
 (0)