mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-11 19:54:05 +02: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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user