diff options
Diffstat (limited to 'navit')
-rw-r--r-- | navit/plugin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/navit/plugin.c b/navit/plugin.c index 8650a614f..d3fdf4417 100644 --- a/navit/plugin.c +++ b/navit/plugin.c @@ -260,8 +260,6 @@ 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; @@ -269,6 +267,8 @@ plugin_get_type(enum plugin_type type, const char *type_name, const char *name) return nv->val; l=g_list_next(l); } + if (!pls) + return NULL; lpls=pls->list; if(!g_ascii_strcasecmp(type_name, "map")) type_name="data"; |