From 5330a9c06342bba38dff375ae31bee8a262f0bc1 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 14 Mar 2022 16:01:07 +0100 Subject: [PATCH] Fixed bug in reporting of unknown roles in multipolygons --- osm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.2