summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2013-04-12 13:39:21 -0400
committerColin Walters <walters@verbum.org>2013-04-15 09:26:38 -0400
commit80a13ef73bbb32c85e00ff8e7870a5d4723c2196 (patch)
tree839a9b8944e47bfee6c891b7b38f24c38dc3e449
parent40b267c0cf1ade076ee9b563405842ae06e34d3d (diff)
downloadgobject-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
-rw-r--r--girepository/gitypelib.c2
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);