diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2009-11-03 09:09:56 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2009-11-03 09:09:56 +0000 |
commit | 4880f847e035e15b12a54a8fcfe25154d12fc858 (patch) | |
tree | 1af9f7173ce9cb457fe808fa3c736ad1a3976359 /navit/attr.c | |
parent | 8bfae62db897efbeb1b37aa4c71a67c934ed882a (diff) | |
download | navit-4880f847e035e15b12a54a8fcfe25154d12fc858.tar.gz |
Fix:Core:Cleanups
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@2720 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/attr.c')
-rw-r--r-- | navit/attr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/navit/attr.c b/navit/attr.c index 796adfd47..8222949c8 100644 --- a/navit/attr.c +++ b/navit/attr.c @@ -374,12 +374,12 @@ attr_generic_remove_attr(struct attr **attrs, struct attr *attr) curr++; count++; } - if (!found == -1) + if (!found) return attrs; curr=g_new0(struct attr *, count); j=0; for (i = 0 ; i < count ; i++) { - if ((*curr)->type != attr->type || (*curr)->u.data != attr->u.data) + if (attrs[i]->type != attr->type || attrs[i]->u.data != attr->u.data) curr[j++]=attrs[i]; else attr_free(attrs[i]); |