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);
|
||||
path = NULL;
|
||||
}
|
||||
for (dir = extra_paths; *dir; dir++)
|
||||
if (extra_paths != NULL)
|
||||
{
|
||||
path = g_build_filename (*dir, girname, NULL);
|
||||
if (g_file_test (path, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_REGULAR))
|
||||
return path;
|
||||
g_free (path);
|
||||
path = NULL;
|
||||
for (dir = extra_paths; *dir; dir++)
|
||||
{
|
||||
path = g_build_filename (*dir, girname, NULL);
|
||||
if (g_file_test (path, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_REGULAR))
|
||||
return path;
|
||||
g_free (path);
|
||||
path = NULL;
|
||||
}
|
||||
}
|
||||
g_free (girname);
|
||||
return path;
|
||||
|
Loading…
Reference in New Issue
Block a user