--- a/libpurple/protocols/myspace/zap.c Tue May 06 21:41:26 2014 +0200 +++ b/libpurple/protocols/myspace/zap.c Tue May 06 23:24:53 2014 +0200 @@ -201,8 +201,7 @@ /* TODO: get rid of once is accessible directly in GUI */ types = msim_attention_types(NULL); i = 0; - do - { + for (; types; types = g_list_next(types)) { PurpleAttentionType *attn; attn = (PurpleAttentionType *)types->data; @@ -212,7 +211,7 @@ zap_menu = g_list_append(zap_menu, act); ++i; - } while ((types = g_list_next(types))); + } act = purple_menu_action_new(_("Zap"), NULL, NULL, zap_menu); menu = g_list_append(NULL, act);