]> Pileus Git - grits/blobdiff - src/objects/gis-tile.c
Debugging and memory checking
[grits] / src / objects / gis-tile.c
index b2f96d377eaf6a6476f32359878dff208415c09b..2fe720285fa3b2ed76356b98399c73c5ced05bfe 100644 (file)
@@ -47,8 +47,8 @@ gchar *gis_tile_get_path(GisTile *child)
                        if (parent->children[x][y] == child)
                                parts = g_list_prepend(parts, gis_tile_path_table[x][y]);
        GString *path = g_string_new("");
-       for (; parts; parts = parts->next)
-               g_string_append(path, parts->data);
+       for (GList *cur = parts; cur; cur = cur->next)
+               g_string_append(path, cur->data);
        g_list_free(parts);
        return g_string_free(path, FALSE);
 }