From 0338c1f696e01cd89c26ea7854cfc110c283f069 Mon Sep 17 00:00:00 2001 From: mdankov Date: Mon, 25 Jul 2022 07:27:42 +0300 Subject: fix:maptool:skip changeset elements and their tags in the osm xml file. (#1193) Deny processing before first element is read. Let maptool silently skip and elements --- navit/maptool/osm_xml.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'navit') diff --git a/navit/maptool/osm_xml.c b/navit/maptool/osm_xml.c index 9fe3ac093..66971bc71 100644 --- a/navit/maptool/osm_xml.c +++ b/navit/maptool/osm_xml.c @@ -172,6 +172,7 @@ int map_collect_data_osm(FILE *in, struct maptool_osm *osm) { int size=BUFFER_SIZE; char buffer[BUFFER_SIZE]; char *p; + int process_tags=0; sig_alrm(0); if (!fgets(buffer, size, in) || !xml_declaration_in_line(buffer)) { fprintf(stderr,"FATAL: First line does not start with XML declaration;\n" @@ -188,11 +189,17 @@ int map_collect_data_osm(FILE *in, struct maptool_osm *osm) { } if (!strncmp(p, "",12)) { } else if (!strncmp(p, "