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,19 +168,21 @@ g_irepository_get_search_path (void)
return search_path;
}
static
GSList *
static GSList *
build_search_path_with_overrides (void)
{
GSList *result;
if (override_search_path != NULL)
{
result = g_slist_copy (override_search_path);
g_slist_last (result)->next = g_slist_copy (search_path);
}
else
result = g_slist_copy (search_path);
return result;
GSList *result;
init_globals ();
if (override_search_path != NULL)
{
result = g_slist_copy (override_search_path);
g_slist_last (result)->next = g_slist_copy (search_path);
}
else
result = g_slist_copy (search_path);
return result;
}
static char *