]> mj.ucw.cz Git - leo.git/commitdiff
Labelling: Warning and FIXME in cut_edge
authorKarryanna <karry@karryanna.cz>
Wed, 1 Jul 2015 09:36:28 +0000 (11:36 +0200)
committerKarryanna <karry@karryanna.cz>
Wed, 1 Jul 2015 09:36:28 +0000 (11:36 +0200)
lab-lines.c

index e3c3005df336cf6503c73a0786293c91cd1efc45..35f9f457c53c3b9d7a9e53fe6a80ed20c0b23a2f 100644 (file)
@@ -426,6 +426,8 @@ static void cut_edge(struct graph_edge *e, double dist)
     return;
   }
 
+  // BEWARE: This creates new OSM object and modifies original data
+  // FIXME: Though this doesn't crash anything now, it could become deathly curse one day
   struct osm_node *n11 = xmalloc(sizeof(struct osm_node));
   struct graph_node *gn = xmalloc(sizeof(struct graph_node));
   gn->o = n11;