aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/em-folder-tree.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 01232494d7..310042ee0e 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -31,6 +31,11 @@
2003-12-10 Not Zed <NotZed@Ximian.com>
+ * em-folder-tree.c (em_folder_tree_get_folder_info__got): check
+ m->fi != NULL before dereferencing it.
+
+2003-12-10 Not Zed <NotZed@Ximian.com>
+
* em-format-html-display.c (efhd_multipart_signed):
* em-format-html.c (efh_multipart_signed):
* em-format.c (emf_multipart_signed): treat
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c
index e3b6aaa5f2..060f121626 100644
--- a/mail/em-folder-tree.c
+++ b/mail/em-folder-tree.c
@@ -625,7 +625,7 @@ em_folder_tree_get_folder_info__got (struct _mail_msg *mm)
/* FIXME: camel's IMAP code is totally on crack here, @top's
* folder info should be @fi and fi->child should be what we
* want to fill our tree with... *sigh* */
- if (m->top && !strcmp (m->fi->full_name, m->top)) {
+ if (m->top && m->fi && !strcmp (m->fi->full_name, m->top)) {
if (!(fi = m->fi->child))
fi = m->fi->sibling;
} else