From daef001fff68bba0273a4e34a42c31ba6f339ee3 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Mon, 30 Jul 2007 13:54:32 +0300 Subject: [PATCH] Ignore way if it has a null segment. --- src/osm.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/osm.c b/src/osm.c index 9340c0d..348473d 100644 --- a/src/osm.c +++ b/src/osm.c @@ -455,19 +455,13 @@ node *f; node *t; if (!s) { + w->id=0; #ifdef VERBOSE g_printerr("ERROR: null segment!\n"); #endif return FALSE; } -if (!w) { -#ifdef VERBOSE - g_printerr("ERROR: null way!\n"); -#endif - return FALSE; -} - f=osm_find_node(s->from); t=osm_find_node(s->to); if (!f) { -- 2.39.5