summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgefin <g.fink@gmx.net>2019-08-21 21:25:55 +0200
committerPierre GRANDIN <pgrandin@users.noreply.github.com>2019-08-21 13:25:55 -0600
commit792425f3d4de464aa63cdb8bf3db1ad7feec1c0b (patch)
tree26c4d732d132ad1b04a3e1df27dd3033cf93dc38
parent3c6b0629e3e8f7aec00e5f3756f2b330c3ad363b (diff)
downloadnavit-792425f3d4de464aa63cdb8bf3db1ad7feec1c0b.tar.gz
Issue/826 (#837)
* time_attr is read without initiation. * Update track.c add space after ad the statement to initiate time_attr
-rw-r--r--navit/track.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/navit/track.c b/navit/track.c
index a197a1ea4..37a7d70a4 100644
--- a/navit/track.c
+++ b/navit/track.c
@@ -635,7 +635,8 @@ void tracking_update(struct tracking *tr, struct vehicle *v, struct vehicleprofi
}
if (!vehicle_get_attr(tr->vehicle, attr_position_speed, &speed_attr, NULL) ||
!vehicle_get_attr(tr->vehicle, attr_position_direction, &direction_attr, NULL) ||
- !vehicle_get_attr(tr->vehicle, attr_position_coord_geo, &coord_geo, NULL)) {
+ !vehicle_get_attr(tr->vehicle, attr_position_coord_geo, &coord_geo, NULL) ||
+ !vehicle_get_attr(tr->vehicle, attr_position_time_iso8601, &time_attr, NULL)) {
dbg(lvl_error,"failed to get position data %d %d %d",
vehicle_get_attr(tr->vehicle, attr_position_speed, &speed_attr, NULL),
vehicle_get_attr(tr->vehicle, attr_position_direction, &direction_attr, NULL),