gobject-introspection r551 - trunk/girepository
- From: walters svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r551 - trunk/girepository
- Date: Sun, 31 Aug 2008 16:01:03 +0000 (UTC)
Author: walters
Date: Sun Aug 31 16:01:02 2008
New Revision: 551
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=551&view=rev
Log:
Don't lose if we have no includedirs
* girepository/girparser.c: Don't lose if we
have no includedirs
Modified:
trunk/girepository/girparser.c
Modified: trunk/girepository/girparser.c
==============================================================================
--- trunk/girepository/girparser.c (original)
+++ trunk/girepository/girparser.c Sun Aug 31 16:01:02 2008
@@ -148,13 +148,16 @@
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]