From 7c6f6871227f382fb3eb09a82755220037d8ac62 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Wed, 13 Feb 2008 14:13:56 +0200 Subject: [PATCH] Check that there are waypoints before trying to create the store --- src/route.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/route.c b/src/route.c index 32fafbb..bf3806d 100644 --- a/src/route.c +++ b/src/route.c @@ -751,6 +751,9 @@ if (route->whead==route->wtail) wcurr=route->whead; +if (!wcurr) + return NULL; + if (!wcurr->point) return NULL; -- 2.39.5