[gnome-maps] lib: Remove uninteded use of comma operator
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] lib: Remove uninteded use of comma operator
- Date: Sun, 18 Nov 2018 15:24:20 +0000 (UTC)
commit a21b785eab5c5779a44c758c709a0f93800479a3
Author: Marcus Lundblad <ml update uu se>
Date: Sun Nov 18 16:22:34 2018 +0100
lib: Remove uninteded use of comma operator
Fixes #133
lib/maps-osm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/lib/maps-osm.c b/lib/maps-osm.c
index 2c06d2f..307a936 100644
--- a/lib/maps-osm.c
+++ b/lib/maps-osm.c
@@ -73,9 +73,9 @@ parse_tag (const xmlAttr *attrs, GHashTable *tags)
for (cur_attr = attrs; cur_attr; cur_attr = cur_attr->next)
{
if (g_str_equal (cur_attr->name, "k"))
- key = (char *) cur_attr->children->content, "";
+ key = (char *) cur_attr->children->content;
else if (g_str_equal (cur_attr->name, "v"))
- value = (char *) cur_attr->children->content, "";
+ value = (char *) cur_attr->children->content;
else
g_warning ("Unexpected tag property: %s\n", cur_attr->name);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]