make sure not to strcmp a possibly NULL string.

2003-06-23  Larry Ewing  <lewing@ximian.com>

	* folder-browser.c (do_message_selected): make sure not to strcmp
	a possibly NULL string.

svn path=/trunk/; revision=21513
This commit is contained in:
Larry Ewing
2003-06-23 16:56:26 +00:00
committed by Larry Ewing
parent 30ab2294f2
commit 04a964a4f6
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-06-23 Larry Ewing <lewing@ximian.com>
* folder-browser.c (do_message_selected): make sure not to strcmp
a possibly NULL string.
2003-06-19 Not Zed <NotZed@Ximian.com>
** See bug #45063
@ -56,6 +61,9 @@
2003-06-11 Larry Ewing <lewing@ximian.com>
* mail-format.c (mail_lookup_handler): free the application list
if we are bailing.
* mail-send-recv.c (free_folder_info): free the info structure as
well.

View File

@ -2473,7 +2473,7 @@ do_message_selected (FolderBrowser *fb)
/* if we are loading, then set a pending, but leave the loading, coudl cancel here (?) */
if (fb->loading_uid) {
if (fb->new_uid == NULL || strcmp(fb->pending_uid, fb->new_uid) != 0) {
if (fb->new_uid == NULL || fb->pending_uid == NULL || strcmp(fb->pending_uid, fb->new_uid) != 0) {
g_free (fb->pending_uid);
fb->pending_uid = g_strdup (fb->new_uid);
}