diff options
author | mvglasow <michael -at- vonglasow.com> | 2019-08-08 20:19:36 +0200 |
---|---|---|
committer | mvglasow <michael -at- vonglasow.com> | 2019-08-08 20:19:36 +0200 |
commit | 29c0cd21160ab2b9ea697a963a32b20c4fd9ffed (patch) | |
tree | ff943af3cb84252ff9660a8892d9f17b216df18e | |
parent | d2b2045eb60b2e658946fe234bcff8c6272e423c (diff) | |
download | navit-29c0cd21160ab2b9ea697a963a32b20c4fd9ffed.tar.gz |
Fix:traffic:Use correct loop terminators
Signed-off-by: mvglasow <michael -at- vonglasow.com>
-rw-r--r-- | navit/traffic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/navit/traffic.c b/navit/traffic.c index cd89f88e5..2b9c5ead3 100644 --- a/navit/traffic.c +++ b/navit/traffic.c @@ -3474,7 +3474,7 @@ static int traffic_message_restore_segments(struct traffic_message * this_, stru i = 0; curr_item = items; curr_length = lengths; - while (items && lengths) { + while (curr_item && curr_length) { item = (struct item *) curr_item->data; tm_item_add_message_data(item, this_->id, traffic_get_item_speed(item, seg_data, INT_MAX), // TODO use segment maxspeed if set |