From 5f9818720232219faba85c45879484bd021f355a Mon Sep 17 00:00:00 2001 From: Benjamin Reis Date: Fri, 20 Jan 2017 10:08:46 +0100 Subject: [PATCH] keep optimizing --- coreapi/friendlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/friendlist.c b/coreapi/friendlist.c index edc559dcf..b39cecfb8 100644 --- a/coreapi/friendlist.c +++ b/coreapi/friendlist.c @@ -538,7 +538,7 @@ LinphoneFriendListStatus linphone_friend_list_import_friend(LinphoneFriendList * } lf->friend_list = list; lf->lc = list->lc; - list->friends = bctbx_list_append(list->friends, linphone_friend_ref(lf)); + list->friends = bctbx_list_prepend(list->friends, linphone_friend_ref(lf)); if (lf->refkey) { bctbx_pair_t *pair = (bctbx_pair_t*) bctbx_pair_cchar_new(lf->refkey, linphone_friend_ref(lf)); bctbx_map_cchar_insert_and_delete(list->friends_map, pair);