Skip to content

Commit a34c0e8

Browse files
committed
Initialize variables coverity can't track
1 parent 45a03ac commit a34c0e8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

source/core_mqtt.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2536,8 +2536,8 @@ static MQTTStatus_t handleUncleanSessionResumption( MQTTContext_t * pContext )
25362536
MQTTStateCursor_t cursor = MQTT_STATE_CURSOR_INITIALIZER;
25372537
uint16_t packetId = MQTT_PACKET_ID_INVALID;
25382538
MQTTPublishState_t state = MQTTStateNull;
2539-
size_t totalMessageLength;
2540-
uint8_t * pMqttPacket;
2539+
size_t totalMessageLength = 0;
2540+
uint8_t * pMqttPacket = NULL;
25412541

25422542
assert( pContext != NULL );
25432543

0 commit comments

Comments
 (0)