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