From 606e40439c8e4a36d81743a30fce8efb8baa9308 Mon Sep 17 00:00:00 2001 From: Karryanna Date: Wed, 1 Jul 2015 11:36:28 +0200 Subject: [PATCH] Labelling: Warning and FIXME in cut_edge --- lab-lines.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.39.2