[PATCH] [girepository] Initialize globals in build_search_path_with_overrides().
Pavel Holejsovsky <[email protected]> Wed, 18 Aug 2010 05:08:33 +0000 (UTC)
| Newsgroups | gmane.comp.gnome.devel |
|---|---|
| Message-ID | <[email protected]> |
Fixes problem when calling g_irepository_require(NULL, ...) as the
very first call from girepository library ignores GI_TYPELIB_PATH
setting.
---
girepository/girepository.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/girepository/girepository.c b/girepository/girepository.c
index 50bcfbd..0b0d074 100644
--- a/girepository/girepository.c
+++ b/girepository/girepository.c
@@ -173,6 +173,7 @@ GSList *
build_search_path_with_overrides (void)
{
GSList *result;
+ init_globals ();
if (override_search_path != NULL)
{
result = g_slist_copy (override_search_path);
--
1.7.0.4