Mercurial > pidgin
diff libpurple/request.c @ 24552:f10aba5592c6
The other day while struct hiding, I noticed a for loop that was checking
g_list_length() as the loop conditional. I decided to check all our calls
to g_list_length() to see which ones I could clean up without too much work.
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Thu, 27 Nov 2008 05:54:09 +0000 |
parents | c2af0701d9cc |
children | 9bdd3ab8087f 89b95d143116 |
line wrap: on
line diff
--- a/libpurple/request.c Thu Nov 27 05:51:03 2008 +0000 +++ b/libpurple/request.c Thu Nov 27 05:54:09 2008 +0000 @@ -887,7 +887,7 @@ purple_request_field_list_clear_selected(field); if (!purple_request_field_list_get_multi_select(field) && - g_list_length(items) > 1) + items && items->next) { purple_debug_warning("request", "More than one item added to non-multi-select "