Skip to content

Commit a166830

Browse files
committed
Issue #1352 - Fixed uninitialized variable warning when O2 and O3 gcc compiler optimizations are used
1 parent fefab62 commit a166830

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/mac/LoRaMacConfirmQueue.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,8 @@ void LoRaMacConfirmQueueHandleCb( MlmeConfirm_t* mlmeConfirm )
283283
bool readyToHandle = false;
284284
MlmeConfirmQueue_t mlmeConfirmToStore;
285285

286+
memset1( ( uint8_t* ) &mlmeConfirmToStore, 0, sizeof( MlmeConfirmQueue_t ) );
287+
286288
for( uint8_t i = 0; i < nbElements; i++ )
287289
{
288290
mlmeConfirm->MlmeRequest = ConfirmQueueCtx.BufferStart->Request;

0 commit comments

Comments
 (0)