mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 16:06: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
@ -148,6 +148,8 @@ locate_gir (const char *name, const char * const* extra_paths)
|
||||
g_free (path);
|
||||
path = NULL;
|
||||
}
|
||||
if (extra_paths != NULL)
|
||||
{
|
||||
for (dir = extra_paths; *dir; dir++)
|
||||
{
|
||||
path = g_build_filename (*dir, girname, NULL);
|
||||
@ -156,6 +158,7 @@ locate_gir (const char *name, const char * const* extra_paths)
|
||||
g_free (path);
|
||||
path = NULL;
|
||||
}
|
||||
}
|
||||
g_free (girname);
|
||||
return path;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user