diff options
author | Sebastian Leske <sebastian.leske@sleske.name> | 2016-01-31 22:48:37 +0100 |
---|---|---|
committer | Sebastian Leske <sebastian.leske@sleske.name> | 2016-01-31 22:50:36 +0100 |
commit | 914c18fe4e98d5218c755a056c09301581414a1a (patch) | |
tree | f224b5ba233de9315b742976ab679069512e5259 | |
parent | 089c9ea7ea1ab535efcf9e9248b99c31aaf989f6 (diff) | |
download | navit-914c18fe4e98d5218c755a056c09301581414a1a.tar.gz |
Fix:core:Make attr_dup_content support attr_item_type. Fixes trac #1340.R6560
attr_dup_content did not support attr_item_type, which caused a warning.
attr_item_type is now handled correctly.
-rw-r--r-- | navit/attr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/navit/attr.c b/navit/attr.c index 2ae4cec65..4ca3868e6 100644 --- a/navit/attr.c +++ b/navit/attr.c @@ -860,6 +860,8 @@ attr_dup_content(struct attr *src, struct attr *dst) dst->type=src->type; if (src->type >= attr_type_int_begin && src->type <= attr_type_int_end) dst->u.num=src->u.num; + else if (src->type == attr_item_type) + dst->u.item_type=src->u.item_type; else if (src->type >= attr_type_object_begin && src->type <= attr_type_object_end) { if (HAS_OBJECT_FUNC(src->type)) { struct navit_object *obj=src->u.data; |