From: Martin Mares Date: Mon, 14 Mar 2022 15:01:07 +0000 (+0100) Subject: Fixed bug in reporting of unknown roles in multipolygons X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=5330a9c06342bba38dff375ae31bee8a262f0bc1;p=leo.git Fixed bug in reporting of unknown roles in multipolygons --- diff --git a/osm.c b/osm.c index 7841358..6c11e67 100644 --- 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) : ""); continue; } if ((f->role == VALUE_INNER) != inner)