bugfix: avoid using uninitiated variable.

This commit is contained in:
Gatsby Van
2024-01-24 11:26:46 +08:00
parent c330bf0c2a
commit b269625467
@@ -405,7 +405,7 @@ int32_t L2_Scan_PktHandler(L2_INST *instPtr, uint8_t *msg)
if (L2_isCxn2Net(instPtr) == false)
{
uint32_t netstartTime, frameNum, slotNum;
uint32_t netstartTime, frameNum, slotNum = 0;
// Update net start time.
L2_FrameGetChunk(msg, L2_MSG_ADV_SRC_NETSTART_TIME, L2_MSG_ADV_SRC_NETSTART_TIME_LEN, &netstartTime);
L2_EVENT netSetupDoneEvent = {