]> err.no Git - mapper/commitdiff
Check that there are waypoints before trying to create the store
authorKaj-Michael Lang <milang@onion.tal.org>
Wed, 13 Feb 2008 12:13:56 +0000 (14:13 +0200)
committerKaj-Michael Lang <milang@onion.tal.org>
Wed, 13 Feb 2008 12:13:56 +0000 (14:13 +0200)
src/route.c

index 32fafbbd60ee3419902d7e42eadeab95a7f52bd3..bf3806da0b62818c6f44de088d376f09600e74c7 100644 (file)
@@ -751,6 +751,9 @@ if (route->whead==route->wtail)
 
 wcurr=route->whead;
 
+if (!wcurr)
+       return NULL;
+
 if (!wcurr->point)
        return NULL;