From: zaxl Date: Wed, 22 Oct 2008 22:06:42 +0000 (+0000) Subject: FIX:core:Do not crash if no plugins are loaded X-Git-Tag: navit-0.5.0.5194svn~3621 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4f79a2405c3888e8bffa3bd74d31af10f3248221;p=profile%2Fivi%2Fnavit.git 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 --- 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;