From 792425f3d4de464aa63cdb8bf3db1ad7feec1c0b Mon Sep 17 00:00:00 2001 From: gefin Date: Wed, 21 Aug 2019 21:25:55 +0200 Subject: Issue/826 (#837) * time_attr is read without initiation. * Update track.c add space after ad the statement to initiate time_attr --- navit/track.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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), -- cgit v1.2.1