diff --git a/src/az_iot/iothub_client/src/iothubtransport_mqtt_common.c b/src/az_iot/iothub_client/src/iothubtransport_mqtt_common.c index b063469..fa72a51 100644 --- a/src/az_iot/iothub_client/src/iothubtransport_mqtt_common.c +++ b/src/az_iot/iothub_client/src/iothubtransport_mqtt_common.c @@ -1033,7 +1033,7 @@ static void mqtt_notification_callback(MQTT_MESSAGE_HANDLE msgHandle, void* call IOTHUB_IDENTITY_TYPE type = retrieve_topic_type(topic_resp); if (type == IOTHUB_TYPE_DEVICE_TWIN) { - size_t request_id; + size_t request_id = 0; int status_code; bool notification_msg; if (parse_device_twin_topic_info(topic_resp, ¬ification_msg, &request_id, &status_code) != 0)