From: Kaj-Michael Lang Date: Wed, 13 Feb 2008 12:13:56 +0000 (+0200) Subject: Check that there are waypoints before trying to create the store X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c6f6871227f382fb3eb09a82755220037d8ac62;p=mapper Check that there are waypoints before trying to create the store --- 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;