diff options
author | Colin Walters <walters@verbum.org> | 2013-04-12 13:39:21 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2013-04-15 09:26:38 -0400 |
commit | 80a13ef73bbb32c85e00ff8e7870a5d4723c2196 (patch) | |
tree | 839a9b8944e47bfee6c891b7b38f24c38dc3e449 /girepository | |
parent | 40b267c0cf1ade076ee9b563405842ae06e34d3d (diff) | |
download | gobject-introspection-80a13ef73bbb32c85e00ff8e7870a5d4723c2196.tar.gz |
typelib: Also ignore typelibs with empty c:prefix
As seen in xlib.gir at least; this is something we should probably ban
though.
https://bugzilla.gnome.org/697759
Diffstat (limited to 'girepository')
-rw-r--r-- | girepository/gitypelib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/girepository/gitypelib.c b/girepository/gitypelib.c index a643cde1..d88924a6 100644 --- a/girepository/gitypelib.c +++ b/girepository/gitypelib.c @@ -294,7 +294,7 @@ g_typelib_matches_gtype_name_prefix (GITypelib *typelib, gsize gtype_name_len; c_prefix = g_typelib_get_string (typelib, header->c_prefix); - if (c_prefix == NULL) + if (c_prefix == NULL || strlen (c_prefix) == 0) return FALSE; gtype_name_len = strlen (gtype_name); |