From: Kaj-Michael Lang Date: Mon, 30 Jul 2007 10:54:32 +0000 (+0300) Subject: Ignore way if it has a null segment. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=daef001fff68bba0273a4e34a42c31ba6f339ee3;p=mapper Ignore way if it has a null segment. --- 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) {