]> err.no Git - mapper/commitdiff
Make sure we have a name for our place
authorKaj-Michael Lang <milang@angel.tal.org>
Thu, 2 Aug 2007 17:16:59 +0000 (20:16 +0300)
committerKaj-Michael Lang <milang@angel.tal.org>
Thu, 2 Aug 2007 17:16:59 +0000 (20:16 +0300)
src/osm.c

index 348473d8f339433d6bca4101cb23bd38a2333acb..ef1ca155f4db073ee1baa8182a957254c343b50c 100644 (file)
--- a/src/osm.c
+++ b/src/osm.c
@@ -1133,7 +1133,7 @@ switch (t) {
 
                if (cnode->data->type==NODE_PLAIN) {
                        osm_free_node_data(cnode);
-               } else {
+               } else if (cnode->data->name) {
                        osm_poi=g_slist_prepend(osm_poi, cnode);
                        switch (cnode->data->type) {
                        case NODE_PLACE_COUNTRY: