[PATCH] [girepository] Initialize globals in build_search_path_with_overrides().



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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]