Commit 583e5024 authored by Erwan Croze's avatar Erwan Croze 👋🏻

Fix variable not init

parent 7e55281e
......@@ -3149,7 +3149,7 @@ void MediaSessionPrivate::stopAudioStream () {
proxy = linphone_core_get_default_proxy_config(q->getCore()->getCCore());
// Get LIMEv2 context
LimeV2 *limeV2Engine;
LimeV2 *limeV2Engine = nullptr;
if (proxy && linphone_core_lime_v2_enabled(linphone_proxy_config_get_core(proxy))) {
limeV2Engine = static_cast<LimeV2 *>(q->getCore()->getEncryptionEngine());
} else {
......@@ -3595,7 +3595,7 @@ void MediaSessionPrivate::propagateEncryptionChanged () {
proxy = linphone_core_get_default_proxy_config(q->getCore()->getCCore());
// Get LIMEv2 context
LimeV2 *limeV2Engine;
LimeV2 *limeV2Engine = nullptr;
if (proxy && linphone_core_lime_v2_enabled(linphone_proxy_config_get_core(proxy))) {
limeV2Engine = static_cast<LimeV2 *>(q->getCore()->getEncryptionEngine());
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment