svn path=/trunk/; revision=938
2008-11-16 Colin Walters <walters@verbum.org>
+ * girepository/girepository.c: Ensure we always call init_globals,
+ even if passed a non-default repository.
+
+2008-11-16 Colin Walters <walters@verbum.org>
+
Bug 559706 - Interface prerequisites
* common.mk: Dep on libgirepository.la for scanner libs so that
}
static void
-init_globals ()
+init_globals (void)
{
g_static_mutex_lock (&globals_lock);
static GIRepository *
get_repository (GIRepository *repository)
{
+ init_globals ();
+
if (repository != NULL)
return repository;
- else
- {
- init_globals ();
- return default_repository;
- }
+ else
+ return default_repository;
}
static GTypelib *