summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMarcus Lundblad <ml@update.uu.se>2016-01-25 22:01:16 +0100
committerMarcus Lundblad <ml@update.uu.se>2016-01-25 22:08:25 +0100
commit214126d5c560502c747fa2842526c58cab13526d (patch)
treec762d0752546b8fe501fe41c57d6c1269d526aae /lib
parent3686ffa7fd1d8747435cb1391170a59308a75f22 (diff)
downloadgnome-maps-214126d5c560502c747fa2842526c58cab13526d.tar.gz
trivial: Actually skip empty tag values when serializing OSM objects
Do as the comment suggests, and don't include tags with empty values. This could happen if the user adds for example a name field and leaves it empty.
Diffstat (limited to 'lib')
-rw-r--r--lib/maps-osm-object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/maps-osm-object.c b/lib/maps-osm-object.c
index 270e5931..c171925d 100644
--- a/lib/maps-osm-object.c
+++ b/lib/maps-osm-object.c
@@ -229,7 +229,7 @@ maps_osm_object_foreach_tag (gpointer key, gpointer value, gpointer user_data)
xmlNodePtr object_node = (xmlNodePtr) user_data;
/* skip tag if it has an empty placeholder value */
- if (val)
+ if (val && *val)
{
xmlNodePtr tag_node;