gtestdbus: Fix variable shadowing
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Tue, 12 Nov 2013 13:09:56 +0000 (13:09 +0000)
committerPhilip Withnall <philip.withnall@collabora.co.uk>
Fri, 29 Nov 2013 08:11:13 +0000 (08:11 +0000)
Shut up, GCC.

https://bugzilla.gnome.org/show_bug.cgi?id=712148

gio/gtestdbus.c

index 98ee8c9..d84a600 100644 (file)
@@ -556,10 +556,10 @@ write_config_file (GTestDBus *self)
 
   for (i = 0; i < self->priv->service_dirs->len; i++)
     {
-      const gchar *path = g_ptr_array_index (self->priv->service_dirs, i);
+      const gchar *dir_path = g_ptr_array_index (self->priv->service_dirs, i);
 
       g_string_append_printf (contents,
-          "  <servicedir>%s</servicedir>\n", path);
+          "  <servicedir>%s</servicedir>\n", dir_path);
     }
 
   g_string_append (contents,