diff options
author | Marcus Lundblad <ml@update.uu.se> | 2016-01-25 22:01:16 +0100 |
---|---|---|
committer | Marcus Lundblad <ml@update.uu.se> | 2016-01-25 22:08:25 +0100 |
commit | 214126d5c560502c747fa2842526c58cab13526d (patch) | |
tree | c762d0752546b8fe501fe41c57d6c1269d526aae /lib | |
parent | 3686ffa7fd1d8747435cb1391170a59308a75f22 (diff) | |
download | gnome-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.c | 2 |
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; |