Skip to content

Commit

Permalink
ArduPilotPlugin.cc: zero init variable (clang-tidy check)
Browse files Browse the repository at this point in the history
  • Loading branch information
khancyr committed Aug 5, 2024
1 parent 4ffeb35 commit 4afacda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ArduPilotPlugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,7 @@ void gz::sim::systems::ArduPilotPlugin::LoadRangeSensors(
struct SensorIdentifier
{
std::string type;
int index;
int index{};
std::string topic;
};
std::vector<SensorIdentifier> sensorIds;
Expand Down Expand Up @@ -1415,7 +1415,7 @@ ssize_t getServoPacket(
int counter = 0;
while (true)
{
TServoPacket last_pkt;
TServoPacket last_pkt{};
auto recvSize_last = _sock.recv(&last_pkt, sizeof(TServoPacket), 0ul);
if (recvSize_last == -1)
{
Expand Down

0 comments on commit 4afacda

Please sign in to comment.