diff --git a/modules/catkin_ws/src/VeloxProtocolLib/test/Main.cpp b/modules/catkin_ws/src/VeloxProtocolLib/test/Main.cpp index 483357c2f312f9bd262129cbe30a1c5de4116c9f..1c0b15e3c3739ee4105b6516be9d408b7993686d 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";