diff --git a/lib/ocpp/v201/device_model.cpp b/lib/ocpp/v201/device_model.cpp index f10bb5c05..e5846131a 100644 --- a/lib/ocpp/v201/device_model.cpp +++ b/lib/ocpp/v201/device_model.cpp @@ -318,7 +318,7 @@ void DeviceModel::check_integrity(const std::map& evse_connect try { this->storage->check_integrity(); - int32_t nr_evse_components; + int32_t nr_evse_components = 0; std::map evse_id_nr_connector_components; for (const auto& [component, variable_map] : this->device_model) {