Mercurial > pidgin.yaz
changeset 24495:d18f44ae1143
Add a comment to clarify code I initially thought was broken.
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Thu, 27 Nov 2008 05:49:01 +0000 |
parents | c7d9d10557a9 |
children | cd70713a996d |
files | libpurple/roomlist.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/roomlist.c Thu Nov 27 05:32:30 2008 +0000 +++ b/libpurple/roomlist.c Thu Nov 27 05:49:01 2008 +0000 @@ -265,6 +265,11 @@ g_return_if_fail(room != NULL); g_return_if_fail(list->fields != NULL); + /* If this is the first call for this room, grab the first field in + * the Roomlist's fields. Otherwise, grab the field that is one + * more than the number of fields already present for the room. + * (This works because g_list_nth_data() is zero-indexed and + * g_list_length() is one-indexed.) */ if (!room->fields) f = list->fields->data; else