aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog4
-rw-r--r--mail/message-list.c3
2 files changed, 7 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index ed724ce9ee..3932c164e5 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,9 @@
2000-06-20 Dan Winship <danw@helixcode.com>
+ * message-list.c (mark_msg_seen): Quick hack to prevent a NULL
+ pointer dereference. Things need to be cleaned up a bit more here
+ though.
+
* mail-sources.c: Oops. This should have been removed a long time
ago.
diff --git a/mail/message-list.c b/mail/message-list.c
index eab53cb772..27a6d47874 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -127,6 +127,9 @@ mark_msg_seen (gpointer data)
MessageList *ml = data;
guint32 flags;
+ if (!ml->selected_uid)
+ return;
+
flags = camel_folder_get_message_flags (ml->folder, ml->selected_uid,
NULL);
camel_folder_set_message_flags (ml->folder, ml->selected_uid,