]> mj.ucw.cz Git - leo.git/commitdiff
Fixed bug in reporting of unknown roles in multipolygons
authorMartin Mares <mj@ucw.cz>
Mon, 14 Mar 2022 15:01:07 +0000 (16:01 +0100)
committerMartin Mares <mj@ucw.cz>
Mon, 14 Mar 2022 15:01:07 +0000 (16:01 +0100)
osm.c

diff --git a/osm.c b/osm.c
index 784135882176faa33f925880dcd98815eac6eb23..6c11e67a6d035289c396f1c143c9622daa67983e 100644 (file)
--- a/osm.c
+++ b/osm.c
@@ -449,7 +449,7 @@ static void osm_multipolygon_make(struct osm_relation *r)
          if (f->role != VALUE_INNER && f->role != VALUE_OUTER)
            {
              if (!inner)
-               osm_obj_warn(o, "Unknown role %s in multipolygon relation", osm_val_decode(f->role));
+               osm_obj_warn(o, "Unknown role %s in multipolygon relation", f->role ? osm_val_decode(f->role) : "<none>");
              continue;
            }
          if ((f->role == VALUE_INNER) != inner)