summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormvglasow <michael -at- vonglasow.com>2019-07-28 19:02:16 +0200
committermvglasow <michael -at- vonglasow.com>2019-07-28 19:02:16 +0200
commit6ef843be1b49314b1c3f0aabf6623a9eae9b802a (patch)
tree05a4d42da1e34cf5bdf31807ef80a821bcecc564
parentbaad6d90539198fb4d4a41f387f95dced60920dd (diff)
downloadnavit-6ef843be1b49314b1c3f0aabf6623a9eae9b802a.tar.gz
Fix:traffic:Return the correct value for tm_get_attr()
Signed-off-by: mvglasow <michael -at- vonglasow.com>
-rw-r--r--navit/traffic.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/navit/traffic.c b/navit/traffic.c
index 2827aedbf..2572ebeff 100644
--- a/navit/traffic.c
+++ b/navit/traffic.c
@@ -1004,11 +1004,10 @@ static struct item * tm_rect_create_item(struct map_rect_priv *mr, enum item_typ
* @return True if the attribute type was found, false if not
*/
static int * tm_get_attr(struct map_priv *priv, enum attr_type type, struct attr *attr) {
- int ret = 0;
if (attr_type == attr_traffic) {
attr->type = attr_traffic;
attr->u.traffic = NULL;
- ret = 1;
+ return 1;
} else
return 0;
}