mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
baseinfo: don't abort when calling g_base_info_get_name() on a GITypeInfo. Fixes #96
GITypeInfo is a GIBaseInfo so calling g_base_info_get_name() on it should do something sensible. g_base_info_get_name() has always been documented to return NULL in case no name is available so return that instead.
This commit is contained in:
parent
e01e11be42
commit
db90b3b3ae
@ -377,6 +377,7 @@ g_base_info_get_name (GIBaseInfo *info)
|
||||
}
|
||||
break;
|
||||
case GI_INFO_TYPE_TYPE:
|
||||
return NULL;
|
||||
default: ;
|
||||
g_assert_not_reached ();
|
||||
/* unnamed */
|
||||
|
Loading…
Reference in New Issue
Block a user