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/component/e-summary-util.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'executive-summary/component') 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