Don't crash if no shlib is embedded

* girepository/gtypelib.c: Don't crash if no
	shlib is embedded

svn path=/trunk/; revision=533
This commit is contained in:
Colin Walters 2008-08-29 20:42:51 +00:00
parent 8baadb8611
commit ce86b80390

View File

@ -1962,7 +1962,7 @@ _g_typelib_init (GTypelib *typelib)
}
}
if (typelib->module == NULL)
if (typelib->module == NULL && shlib != NULL)
{
GString *shlib_full;