]> err.no Git - mapper/commitdiff
Ignore way if it has a null segment.
authorKaj-Michael Lang <milang@angel.tal.org>
Mon, 30 Jul 2007 10:54:32 +0000 (13:54 +0300)
committerKaj-Michael Lang <milang@angel.tal.org>
Mon, 30 Jul 2007 10:54:32 +0000 (13:54 +0300)
src/osm.c

index 9340c0d02b57b8475411fb00c278057f4256281a..348473d8f339433d6bca4101cb23bd38a2333acb 100644 (file)
--- 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) {