From 4f79a2405c3888e8bffa3bd74d31af10f3248221 Mon Sep 17 00:00:00 2001 From: zaxl Date: Wed, 22 Oct 2008 22:06:42 +0000 Subject: [PATCH] FIX:core:Do not crash if no plugins are loaded git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@1536 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- navit/navit/plugin.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/navit/navit/plugin.c b/navit/navit/plugin.c index 126aa2e..8650a61 100644 --- a/navit/navit/plugin.c +++ b/navit/navit/plugin.c @@ -260,6 +260,8 @@ plugin_get_type(enum plugin_type type, const char *type_name, const char *name) struct name_val *nv; struct plugin *pl; char *mod_name, *filename=NULL, *corename=NULL; + if (!pls) + return NULL; l=plugin_types[type]; while (l) { nv=l->data; -- 2.7.4