summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/Messenger.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/Messenger.c b/core/Messenger.c
index 872d7407..eb59b81a 100644
--- a/core/Messenger.c
+++ b/core/Messenger.c
@@ -166,11 +166,13 @@ int m_delfriend(int friendnumber)
166 free(friendlist[friendnumber].userstatus); 166 free(friendlist[friendnumber].userstatus);
167 memset(&friendlist[friendnumber], 0, sizeof(Friend)); 167 memset(&friendlist[friendnumber], 0, sizeof(Friend));
168 uint32_t i; 168 uint32_t i;
169
169 for (i = numfriends; i != 0; --i) { 170 for (i = numfriends; i != 0; --i) {
170 if (friendlist[i-1].status != 0) 171 if (friendlist[i-1].status != 0)
171 break; 172 break;
172 } 173 }
173 numfriends = i; 174 numfriends = i;
175
174 return 0; 176 return 0;
175} 177}
176 178