gobject-introspection r938 - in trunk: . girepository
- From: walters svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r938 - in trunk: . girepository
- Date: Mon, 17 Nov 2008 00:49:58 +0000 (UTC)
Author: walters
Date: Mon Nov 17 00:49:58 2008
New Revision: 938
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=938&view=rev
Log:
Ensure we always call init_globals
Modified:
trunk/ChangeLog
trunk/girepository/girepository.c
Modified: trunk/girepository/girepository.c
==============================================================================
--- trunk/girepository/girepository.c (original)
+++ trunk/girepository/girepository.c Mon Nov 17 00:49:58 2008
@@ -82,7 +82,7 @@
}
static void
-init_globals ()
+init_globals (void)
{
g_static_mutex_lock (&globals_lock);
@@ -179,13 +179,12 @@
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 *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]