Mercurial > pidgin
comparison libpurple/protocols/myspace/message.c @ 17282:ec50eafd1823
(Plugin partially functional) Fix msim_msg_get() search.
Now works:
- Logging in
Doesn't work:
- Sending messages (double-free/corruption crash)
author | Jeffrey Connelly <jaconnel@calpoly.edu> |
---|---|
date | Fri, 01 Jun 2007 06:17:54 +0000 |
parents | d8afaaf24f34 |
children | 37499e926a42 |
comparison
equal
deleted
inserted
replaced
17281:d8afaaf24f34 | 17282:ec50eafd1823 |
---|---|
577 MsimMessageElement *msim_msg_get(MsimMessage *msg, gchar *name) | 577 MsimMessageElement *msim_msg_get(MsimMessage *msg, gchar *name) |
578 { | 578 { |
579 GList *i; | 579 GList *i; |
580 | 580 |
581 /* Linear search for the given name. O(n) but n is small. */ | 581 /* Linear search for the given name. O(n) but n is small. */ |
582 for (i = g_list_first(msg); i != NULL; i = g_list_next(msg)) | 582 for (i = g_list_first(msg); i != NULL; i = g_list_next(i)) |
583 { | 583 { |
584 MsimMessageElement *elem; | 584 MsimMessageElement *elem; |
585 | 585 |
586 elem = i->data; | 586 elem = i->data; |
587 g_return_val_if_fail(elem != NULL, NULL); | 587 g_return_val_if_fail(elem != NULL, NULL); |