X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lab-lines.c;h=35f9f457c53c3b9d7a9e53fe6a80ed20c0b23a2f;hb=606e40439c8e4a36d81743a30fce8efb8baa9308;hp=e3c3005df336cf6503c73a0786293c91cd1efc45;hpb=4c2fd40afce87812f72e1dc6b00606fc9e42a43b;p=leo.git diff --git a/lab-lines.c b/lab-lines.c index e3c3005..35f9f45 100644 --- a/lab-lines.c +++ b/lab-lines.c @@ -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;