Fix compilation issue.

This commit is contained in:
Ghislain MARY 2017-02-21 10:56:58 +01:00
parent 5193bb34e1
commit 29b27b752c

View file

@ -649,7 +649,7 @@ LinphoneReason linphone_core_message_received(LinphoneCore *lc, SalOp *op, const
LinphoneChatRoom *cr = NULL;
LinphoneAddress *addr;
LinphoneAddress *to;
LinphoneChatMessage *msg;
LinphoneChatMessage *msg = NULL;
LinphoneImEncryptionEngine *imee = lc->im_encryption_engine;
const SalCustomHeader *ch;
LinphoneReason reason = LinphoneReasonNone;
@ -737,7 +737,7 @@ LinphoneReason linphone_core_message_received(LinphoneCore *lc, SalOp *op, const
end:
linphone_address_unref(addr);
linphone_chat_message_unref(msg);
if (msg != NULL) linphone_chat_message_unref(msg);
return reason;
}