diff options
Diffstat (limited to 'navit/osd.c')
-rw-r--r-- | navit/osd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/navit/osd.c b/navit/osd.c index dd87392fb..921b2d8ab 100644 --- a/navit/osd.c +++ b/navit/osd.c @@ -53,8 +53,10 @@ osd_new(struct attr *parent, struct attr **attrs) if (! type) return NULL; new=plugin_get_osd_type(type->u.str); - if (! new) + if (! new) { + dbg(lvl_error, "invalid OSD type '%s'\n", type->u.str); return NULL; + } o=g_new0(struct osd, 1); o->attrs=attr_list_dup(attrs); cbl.type=attr_callback_list; |