Check that the file exists, and continue through the loop if it doesn't

2004-02-24  Rodney Dawes  <dobey@ximian.com>

	* gnome-wp-xml.c (gnome_wp_oad_legacy): Check that the file exists,
	and continue through the loop if it doesn't (#135251)

	Fixes #135251
This commit is contained in:
Rodney Dawes 2004-02-24 19:49:58 +00:00 committed by Rodney Dawes
parent 48c884fe25
commit 19c8dc6001
2 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2004-02-24 Rodney Dawes <dobey@ximian.com>
* gnome-wp-xml.c (gnome_wp_oad_legacy): Check that the file exists,
and continue through the loop if it doesn't (#135251)
Fixes #135251
2004-02-24 Rodney Dawes <dobey@ximian.com>
* gnome-wp-item.c (gnome_wp_item_get_thumbnail): Add some explanatory

View file

@ -76,6 +76,10 @@ static void gnome_wp_load_legacy (GnomeWPCapplet * capplet) {
continue;
}
if (!g_file_test (foo, G_FILE_TEST_EXISTS)) {
continue;
}
item = g_new0 (GnomeWPItem, 1);
item->filename = g_strdup (foo);