[seed] fix #656517 - Do not add search path entry for non-existing directory.
- From: Alan Knowles <alank src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [seed] fix #656517 - Do not add search path entry for non-existing directory.
- Date: Fri, 19 Aug 2011 08:00:10 +0000 (UTC)
commit 9805441749f447b7b46f6b314531542d3b4453aa
Author: Alexandre Mazari <amazari igalia com>
Date: Thu Aug 11 18:06:27 2011 +0200
fix #656517 - Do not add search path entry for non-existing directory.
https://bugzilla.gnome.org/show_bug.cgi?id=656517
libseed/seed-importer.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libseed/seed-importer.c b/libseed/seed-importer.c
index f9a6a74..0c0caf9 100644
--- a/libseed/seed-importer.c
+++ b/libseed/seed-importer.c
@@ -574,7 +574,8 @@ seed_importer_get_search_path (JSContextRef ctx, JSValueRef * exception)
exception);
entry = seed_value_to_string (ctx, entry_ref, exception);
- path = g_slist_append (path, entry);
+ if (g_file_test (entry, G_FILE_TEST_EXISTS) == TRUE)
+ path = g_slist_append (path, entry);
}
return path;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]