1
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-01-03 14:57:42 -05:00

Rename rooms vars in _send_room_presence

This commit is contained in:
James Booth 2016-07-25 23:13:09 +01:00
parent 5f8ef3816c
commit 6777919d96

View File

@ -300,11 +300,11 @@ presence_send(const resource_presence_t presence_type, const char *const msg, co
static void
_send_room_presence(xmpp_stanza_t *presence)
{
GList *rooms_p = muc_rooms();
GList *rooms = rooms_p;
GList *rooms = muc_rooms();
GList *curr = rooms;
while (rooms) {
const char *room = rooms->data;
while (curr) {
const char *room = curr->data;
const char *nick = muc_nick(room);
if (nick) {
@ -316,12 +316,10 @@ _send_room_presence(xmpp_stanza_t *presence)
free(full_room_jid);
}
rooms = g_list_next(rooms);
curr = g_list_next(curr);
}
if (rooms_p) {
g_list_free(rooms_p);
}
g_list_free(rooms);
}
void