Commit dfbf8e03 authored by Erwan Croze's avatar Erwan Croze 👋🏻

Fix uninitialized variable

parent 5d47a109
......@@ -2608,7 +2608,7 @@ void linphone_core_add_friend_list(LinphoneCore *lc, LinphoneFriendList *list) {
const bctbx_list_t * linphone_core_find_contacts_by_char(LinphoneCore *core, const char *filter, bool_t sip_only) {
// Get sipuri from filter if possible
bctbx_list_t *list, *_list = NULL;
bctbx_list_t *list = NULL, *_list = NULL;
LinphoneAddress *addr = linphone_core_interpret_url(core, (sip_only) ? filter : "");
bctbx_list_t* listFriendsList = (bctbx_list_t*)linphone_core_get_friends_lists(core);
bctbx_list_t* listFriend = (listFriendsList != NULL)
......
......@@ -74,7 +74,7 @@ list<Content> ContentManager::multipartToContentLists (Content content) const {
Content ContentManager::contentsListToMultipart (list<Content> contents) const {
char *desc;
string sub;
belle_sip_memory_body_handler_t *mbh;
belle_sip_memory_body_handler_t *mbh = NULL;
belle_sip_multipart_body_handler_t *mpbh = belle_sip_multipart_body_handler_new(NULL, NULL, NULL, MULTIPART_BOUNDARY);
belle_sip_object_ref(mpbh);
for (const auto &content : contents) {
......
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