Skip to content

Commit

Permalink
Issue #1352 - Fixed uninitialized variable warning when O2 and O3 gcc…
Browse files Browse the repository at this point in the history
… compiler optimizations are used
  • Loading branch information
mluis1 committed Sep 29, 2022
1 parent fefab62 commit a166830
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mac/LoRaMacConfirmQueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,8 @@ void LoRaMacConfirmQueueHandleCb( MlmeConfirm_t* mlmeConfirm )
bool readyToHandle = false;
MlmeConfirmQueue_t mlmeConfirmToStore;

memset1( ( uint8_t* ) &mlmeConfirmToStore, 0, sizeof( MlmeConfirmQueue_t ) );

for( uint8_t i = 0; i < nbElements; i++ )
{
mlmeConfirm->MlmeRequest = ConfirmQueueCtx.BufferStart->Request;
Expand Down

0 comments on commit a166830

Please sign in to comment.