diff options
author | irungentoo <irungentoo@gmail.com> | 2013-12-09 09:30:35 -0500 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-12-09 09:30:35 -0500 |
commit | 563664d1a5d178c6e9ea2328a6683c42aa553a66 (patch) | |
tree | 49d4cf99c0ff04a2e985a2e13d978a0b3cd3c89a /toxcore/Messenger.c | |
parent | d5092e7cf8d18281641b5e6ecc51847883365e8a (diff) |
Fixed possible issue.
Diffstat (limited to 'toxcore/Messenger.c')
-rw-r--r-- | toxcore/Messenger.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c index 2eebd772..aa575382 100644 --- a/toxcore/Messenger.c +++ b/toxcore/Messenger.c | |||
@@ -861,12 +861,12 @@ int add_groupchat(Messenger *m) | |||
861 | if (temp == NULL) | 861 | if (temp == NULL) |
862 | return -1; | 862 | return -1; |
863 | 863 | ||
864 | m->chats = temp; | ||
864 | temp[m->numchats] = new_groupchat(m->net); | 865 | temp[m->numchats] = new_groupchat(m->net); |
865 | 866 | ||
866 | if (temp[m->numchats] == NULL) | 867 | if (temp[m->numchats] == NULL) |
867 | return -1; | 868 | return -1; |
868 | 869 | ||
869 | m->chats = temp; | ||
870 | callback_groupmessage(temp[m->numchats], &group_message_function, m); | 870 | callback_groupmessage(temp[m->numchats], &group_message_function, m); |
871 | callback_namelistchange(temp[m->numchats], &group_namelistchange_function, m); | 871 | callback_namelistchange(temp[m->numchats], &group_namelistchange_function, m); |
872 | /* TODO: remove this (group nicks should not be tied to the global one) */ | 872 | /* TODO: remove this (group nicks should not be tied to the global one) */ |