mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-20 22:29:17 +02:00
girepository: Call init_globals()
This fixes the search path initialization if g_irepository_require is called first thing.
This commit is contained in:
parent
36bf5dd721
commit
b18a6580d2
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user