girepository: Call init_globals()

This fixes the search path initialization if g_irepository_require
is called first thing.
This commit is contained in:
Colin Walters 2010-09-02 17:40:54 -04:00
parent 36bf5dd721
commit b18a6580d2

View File

@ -168,11 +168,13 @@ g_irepository_get_search_path (void)
return search_path; return search_path;
} }
static static GSList *
GSList *
build_search_path_with_overrides (void) build_search_path_with_overrides (void)
{ {
GSList *result; GSList *result;
init_globals ();
if (override_search_path != NULL) if (override_search_path != NULL)
{ {
result = g_slist_copy (override_search_path); result = g_slist_copy (override_search_path);