diff options
Diffstat (limited to 'navit/plugin.c')
-rw-r--r-- | navit/plugin.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/navit/plugin.c b/navit/plugin.c index 126aa2ea3..8650a614f 100644 --- a/navit/plugin.c +++ b/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; |