From d5bc2e4d7c5988e4872c2e0f26f91b3ae5a98345 Mon Sep 17 00:00:00 2001 From: Hoop77 <p.badenhoop@gmx.de> Date: Tue, 24 Apr 2018 23:00:11 +0200 Subject: [PATCH] - --- modules/catkin_ws/src/VeloxProtocolLib/test/Main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/catkin_ws/src/VeloxProtocolLib/test/Main.cpp b/modules/catkin_ws/src/VeloxProtocolLib/test/Main.cpp index 483357c2..1c0b15e3 100644 --- a/modules/catkin_ws/src/VeloxProtocolLib/test/Main.cpp +++ b/modules/catkin_ws/src/VeloxProtocolLib/test/Main.cpp @@ -20,7 +20,7 @@ int main(int argc, char ** argv) [] { std::cout << "Connection closed!\n"; }); - for (std::string in; in != "x"; std::getline(std::cin, in)) + for (std::string in{"0"}; in != "x"; std::getline(std::cin, in)) { float angle = std::stof(in); std::cout << "Setting steering angle to: " << angle << "\n"; -- GitLab