]> git.meshlink.io Git - catta/blobdiff - avahi-common/strlst.c
* revert half of a fix Sebastien did some time ago
[catta] / avahi-common / strlst.c
index d8206e1c8c391073b179360789318291c34aec07..d4d67da2d9d3c9250f27034fbe90f454efca5dc4 100644 (file)
@@ -246,12 +246,12 @@ AvahiStringList *avahi_string_list_copy(const AvahiStringList *l) {
 
 AvahiStringList *avahi_string_list_new_from_array(const gchar *array[], gint length) {
     AvahiStringList *r = NULL;
-    gint index;
+    gint i;
 
     g_assert(array);
 
-    for (index = 0; length >= 0 ? index < length : !!array[index]; index++)
-        r = avahi_string_list_add(r, array[index]);
+    for (i = 0; length >= 0 ? i < length : !!array[i]; i++)
+        r = avahi_string_list_add(r, array[i]);
 
     return r;
 }