diff options
author | jandegr <jandegr@users.noreply.github.com> | 2019-09-26 21:43:50 +0200 |
---|---|---|
committer | Pierre GRANDIN <pgrandin@users.noreply.github.com> | 2019-09-26 13:43:50 -0600 |
commit | d18dec5ec22551ea9feeb6aedf5c226a6f998fe6 (patch) | |
tree | 6b514f5bfb063701efbb4f15f8c12ad3bd75c1eb /navit/navit.c | |
parent | f304cfc699a73f9c0677d5d3315cd7e3d5daea30 (diff) | |
download | navit-d18dec5ec22551ea9feeb6aedf5c226a6f998fe6.tar.gz |
Fix:android:64 bit and cleanup2 (#877)
https://github.com/navit-gps/navit/pull/877
Diffstat (limited to 'navit/navit.c')
-rw-r--r-- | navit/navit.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/navit/navit.c b/navit/navit.c index ae39aca59..63ed65807 100644 --- a/navit/navit.c +++ b/navit/navit.c @@ -2450,6 +2450,9 @@ void navit_set_center_cursor(struct navit *this_, int autozoom, int keep_orienta struct point pn; struct navit_vehicle *nv=this_->vehicle; struct attr attr; + if (!nv || !nv->vehicle) { + return; + } if (vehicle_get_attr(nv->vehicle, attr_position_valid, &attr, NULL) && (attr.u.num == attr_position_valid_invalid)) return; navit_get_cursor_pnt(this_, &pn, keep_orientation, &dir); |