diff options
author | Dan Winship <danw@src.gnome.org> | 2000-06-21 06:27:24 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-06-21 06:27:24 +0800 |
commit | b07386e871e4e14eb45757d939b835a529e845f4 (patch) | |
tree | b3729652d56831da5622477c2189ed7f3acf0612 | |
parent | de2f05a152535e1b16f095906851c2aad9d1e32d (diff) | |
download | gsoc2013-evolution-b07386e871e4e14eb45757d939b835a529e845f4.tar gsoc2013-evolution-b07386e871e4e14eb45757d939b835a529e845f4.tar.gz gsoc2013-evolution-b07386e871e4e14eb45757d939b835a529e845f4.tar.bz2 gsoc2013-evolution-b07386e871e4e14eb45757d939b835a529e845f4.tar.lz gsoc2013-evolution-b07386e871e4e14eb45757d939b835a529e845f4.tar.xz gsoc2013-evolution-b07386e871e4e14eb45757d939b835a529e845f4.tar.zst gsoc2013-evolution-b07386e871e4e14eb45757d939b835a529e845f4.zip |
Quick hack to prevent a NULL pointer dereference. Things need to be
* 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.
svn path=/trunk/; revision=3653
-rw-r--r-- | mail/ChangeLog | 4 | ||||
-rw-r--r-- | mail/message-list.c | 3 |
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, |