mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
Don't lose if we have no includedirs
* girepository/girparser.c: Don't lose if we have no includedirs svn path=/trunk/; revision=551
This commit is contained in:
parent
dcd4fe622a
commit
ae48f17999
15
girparser.c
15
girparser.c
@ -148,13 +148,16 @@ locate_gir (const char *name, const char * const* extra_paths)
|
|||||||
g_free (path);
|
g_free (path);
|
||||||
path = NULL;
|
path = NULL;
|
||||||
}
|
}
|
||||||
for (dir = extra_paths; *dir; dir++)
|
if (extra_paths != NULL)
|
||||||
{
|
{
|
||||||
path = g_build_filename (*dir, girname, NULL);
|
for (dir = extra_paths; *dir; dir++)
|
||||||
if (g_file_test (path, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_REGULAR))
|
{
|
||||||
return path;
|
path = g_build_filename (*dir, girname, NULL);
|
||||||
g_free (path);
|
if (g_file_test (path, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_REGULAR))
|
||||||
path = NULL;
|
return path;
|
||||||
|
g_free (path);
|
||||||
|
path = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
g_free (girname);
|
g_free (girname);
|
||||||
return path;
|
return path;
|
||||||
|
Loading…
Reference in New Issue
Block a user