From: Karryanna Date: Wed, 1 Jul 2015 09:36:28 +0000 (+0200) Subject: Labelling: Warning and FIXME in cut_edge X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;ds=sidebyside;h=606e40439c8e4a36d81743a30fce8efb8baa9308;hp=4c2fd40afce87812f72e1dc6b00606fc9e42a43b;p=leo.git Labelling: Warning and FIXME in cut_edge --- 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;