aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-profile-chooser.c
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy-gtk/empathy-profile-chooser.c')
-rw-r--r--libempathy-gtk/empathy-profile-chooser.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-profile-chooser.c b/libempathy-gtk/empathy-profile-chooser.c
index f1d508ffc..212869da4 100644
--- a/libempathy-gtk/empathy-profile-chooser.c
+++ b/libempathy-gtk/empathy-profile-chooser.c
@@ -59,11 +59,12 @@ profile_chooser_sort_profile_value (McProfile *profile)
const gchar *profile_name;
const gchar *names[] = {"jabber",
"salut",
- "gtalk"};
+ "gtalk",
+ NULL};
profile_name = mc_profile_get_unique_name (profile);
- for (i = 0 ; i < G_N_ELEMENTS (names); i++) {
+ for (i = 0 ; names[i]; i++) {
if (strcmp (profile_name, names[i]) == 0) {
return i;
}