Skip to content

Commit

Permalink
Fix uninitialized local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jwbonner committed Feb 1, 2024
1 parent 951fd8b commit b124bf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/driver/cpp/URCLDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ void URCLDriver_read() {
}

HAL_CANStreamMessage messages[std::max(maxPersistentMessages, maxPeriodicMessages)];
uint32_t messageCount;
uint32_t messageCount = 0;

// Read firmware messages
HAL_CAN_ReadStreamSession(firmwareStreamHandle, messages, maxPersistentMessages, &messageCount, &halStatus);
Expand Down

0 comments on commit b124bf8

Please sign in to comment.