From 9c6f86a43dd17e08ea6ec275a5bbf52ace9d879b Mon Sep 17 00:00:00 2001 From: Iain Holmes Date: Fri, 12 Jan 2001 20:40:09 +0000 Subject: Fixed NULL dereference svn path=/trunk/; revision=7455 --- executive-summary/ChangeLog | 18 ++++++++++++++++++ executive-summary/component/e-summary-util.c | 3 +++ 2 files changed, 21 insertions(+) diff --git a/executive-summary/ChangeLog b/executive-summary/ChangeLog index acae529466..26b113f03a 100644 --- a/executive-summary/ChangeLog +++ b/executive-summary/ChangeLog @@ -1,3 +1,21 @@ +2001-01-12 Iain Holmes + + * component/e-summary-util.c (e_summary_rm_dir): If base == NULL return; + Closes bug #37077 + +2000-12-30 Iain Holmes + + * component/e-summary.c (e_summary_rebuild_page): The number of columns + is no longer hardcoded. + + * component/e-summary-prefs.[ch]: Add a columns member, and all the + necessary code to support it. + + * component/e-summary-callbacks.c: Set the columns member. + + * test-service/rdf-summary.c: Add a "Show title" button for turning off + the title if it is taking up too much room. + 2000-12-29 Iain Holmes * test-service/rdf-summary.c (view_destroyed): Cancel all pending diff --git a/executive-summary/component/e-summary-util.c b/executive-summary/component/e-summary-util.c index c19c829d57..3bd954ce12 100644 --- a/executive-summary/component/e-summary-util.c +++ b/executive-summary/component/e-summary-util.c @@ -102,6 +102,9 @@ e_summary_rm_dir (const char *path) g_warning ("Opening: %s", path); base = opendir (path); + if (base == NULL) + return; + contents = readdir (base); while (contents != NULL) { char *fullpath; -- cgit v1.2.3