diff --git a/gio/gcontenttype.c b/gio/gcontenttype.c index 04d278db3232021dfde2f7ac0da62c9c9659192d..2716c8981b8608cb1ca7bbf199758b978caa41b8 100644 --- a/gio/gcontenttype.c +++ b/gio/gcontenttype.c @@ -614,6 +614,8 @@ g_content_type_get_generic_icon_name (const gchar *type) const gchar *xdg_icon_name; gchar *icon_name; + g_return_val_if_fail (type != NULL, NULL); + G_LOCK (gio_xdgmime); xdg_icon_name = xdg_mime_get_generic_icon (type); G_UNLOCK (gio_xdgmime);