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:
Colin Walters
2008-08-31 16:01:02 +00:00
parent dcd4fe622a
commit ae48f17999

View File

@@ -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;
} }