Archives for July, 2009

More GList anti-patterns


Ross, your examples are not as bad as something I found in some code I had to fix recently: GList *list = e_vcard_get_attributes (evcard); for (list = g_list_first (list); list != NULL; list = g_list_next (list)) { /* Do something */ } for (list = g_list_first (list); list != NULL; list = g_list_next (list)) { […]