From b6214e68c3734e04ca6a4e36939750ecaf3a39e9 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Sun, 8 Jul 2001 03:44:24 +0000 Subject: Check for new_uid != NULL here before strcmping. 2001-07-07 Christopher James Lahey * message-list.c (on_cursor_activated_cmd): Check for new_uid != NULL here before strcmping. svn path=/trunk/; revision=10889 --- mail/ChangeLog | 5 +++++ mail/message-list.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/mail/ChangeLog b/mail/ChangeLog index 8fae997593..3960d95909 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2001-07-07 Christopher James Lahey + + * message-list.c (on_cursor_activated_cmd): Check for new_uid != + NULL here before strcmping. + 2001-07-07 Dan Winship * main.c (main): Only install the segv_redirect handler if SEGV's diff --git a/mail/message-list.c b/mail/message-list.c index 583524821d..92db0ff66f 100644 --- a/mail/message-list.c +++ b/mail/message-list.c @@ -1971,7 +1971,7 @@ on_cursor_activated_cmd (ETree *tree, int row, ETreePath path, gpointer user_dat else new_uid = get_message_uid(message_list, path); - if (message_list->cursor_uid != NULL && !strcmp (message_list->cursor_uid, new_uid)) + if (message_list->cursor_uid != NULL && new_uid != NULL && !strcmp (message_list->cursor_uid, new_uid)) return; message_list->cursor_row = row; -- cgit v1.2.3