From dc6754094dd954bd1f91ea4cebaa3412a25b4488 Mon Sep 17 00:00:00 2001 From: sleske Date: Thu, 5 Jul 2012 20:39:10 +0000 Subject: Fix:core:Exit if no maps are available; avoids crash. git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5181 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- navit/navit.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'navit/navit.c') diff --git a/navit/navit.c b/navit/navit.c index 66350a6ca..35f14e756 100644 --- a/navit/navit.c +++ b/navit/navit.c @@ -2054,6 +2054,9 @@ navit_init(struct navit *this_) } } navit_add_former_destinations_from_file(this_); + } else { + dbg(0, "FATAL: No mapset available. Please add a (valid) mapset to your configuration.\n"); + exit(1); } if (this_->route) { struct attr callback; -- cgit v1.2.1