]> git.0d.be Git - empathy.git/commitdiff
Better like that
authorXavier Claessens <xclaesse@src.gnome.org>
Sat, 28 Jul 2007 21:21:53 +0000 (21:21 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Sat, 28 Jul 2007 21:21:53 +0000 (21:21 +0000)
svn path=/trunk/; revision=211

libempathy-gtk/empathy-profile-chooser.c

index f1d508ffc39555711e0d30270391695822701c2d..212869da4ec92d8352380fadf96384d4a192bf4a 100644 (file)
@@ -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;
                }