aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2000-09-09 06:16:27 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2000-09-09 06:16:27 +0800
commitcebba7fc5ed18da8460c971a47fff7c7dabe613a (patch)
treedcc090a397b72d5eff772c0613570e058776aa1c
parentc884f5a0148fa2202108cf53645656db5f0e4636 (diff)
downloadgsoc2013-evolution-cebba7fc5ed18da8460c971a47fff7c7dabe613a.tar.gz
gsoc2013-evolution-cebba7fc5ed18da8460c971a47fff7c7dabe613a.tar.zst
gsoc2013-evolution-cebba7fc5ed18da8460c971a47fff7c7dabe613a.zip
Fix a stupid crash caused by not taking account of the fact that the
root node has no folder associated with it. svn path=/trunk/; revision=5277
-rw-r--r--shell/ChangeLog5
-rw-r--r--shell/evolution-storage.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index a31eba7d8e..5949d98878 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,5 +1,10 @@
2000-09-08 Ettore Perazzoli <ettore@helixcode.com>
+ * evolution-storage.c (list_through_listener_foreach): Don't crash
+ on nodes with no data. [The root node has none indeed.]
+
+2000-09-08 Ettore Perazzoli <ettore@helixcode.com>
+
* e-folder-tree.c (e_folder_tree_get_folder): Return NULL if there
is no folder with that @path, instead of segfaulting.
diff --git a/shell/evolution-storage.c b/shell/evolution-storage.c
index 6a28375b9f..ec68cf31a2 100644
--- a/shell/evolution-storage.c
+++ b/shell/evolution-storage.c
@@ -63,6 +63,10 @@ list_through_listener_foreach (EFolderTree *tree,
corba_folder = (Evolution_Folder *) data;
corba_listener = (Evolution_StorageListener) closure;
+ /* The root folder has no data. */
+ if (corba_folder == NULL)
+ return;
+
CORBA_exception_init (&ev);
Evolution_StorageListener_new_folder (corba_listener, path, corba_folder, &ev);
CORBA_exception_free (&ev);
class='insertions'>+5 * - Update to 1.5.5pav2006-01-152-4/+4 * - Update to 1.5.4tdb2006-01-113-6/+5 * Chase libversion bumb to libMagick.so.9edwin2006-01-051-0/+1 * www/mediawiki update to 1.5.3 (security update)edwin2005-12-212-3/+4 * Chase some URLs per the distfile survey.linimon2005-11-251-1/+1 * - Update to 1.5.2garga2005-11-092-11/+5 * - Update to 1.5.1garga2005-10-282-3/+3 * - Update to 1.5.0garga2005-10-132-4/+4 * - Update to 1.4.11garga2005-10-102-4/+4 * - Update to 1.4.10garga2005-09-232-3/+3 * Update to 1.4.9jylefort2005-09-012-3/+3 * Update to 1.4.7.novel2005-07-222-3/+3 * - Update to 1.4.6, which fixes Javascript injection vulnerabilitypav2005-07-082-4/+3 * - Fix typo (LASTEST_LINK -> LATEST_LINK).flz2005-06-071-1/+2 * - Security update to 1.4.5.flz2005-06-062-3/+4 * - Do not use NO_LATEST_LINK [1]jylefort2005-05-141-2/+1 * Update to 1.4.4novel2005-05-072-4/+25 * - Update to 1.4.0pav2005-05-062-25/+6 * Update to 1.3.12novel2005-05-022-5/+25 * - Add missing php dependencies (session and zlib).flz2005-03-041-1/+2 * - Update to 1.3.11.flz2005-03-022-3/+3