diff options
Diffstat (limited to 'navit/route.c')
| -rw-r--r-- | navit/route.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/navit/route.c b/navit/route.c index 858e51406..273e50aeb 100644 --- a/navit/route.c +++ b/navit/route.c @@ -1047,7 +1047,8 @@ struct map_selection * route_get_selection(struct route * this_) { int i = 0; GList *tmp; - c[i++] = this_->pos->c; + if (this_->pos) + c[i++] = this_->pos->c; tmp = this_->destinations; while (tmp) { struct route_info *dst = tmp->data; |
