aboutsummaryrefslogtreecommitdiffstats
path: root/mail/folder-browser.c
diff options
context:
space:
mode:
authorLarry Ewing <lewing@ximian.com>2003-06-24 00:56:26 +0800
committerLarry Ewing <lewing@src.gnome.org>2003-06-24 00:56:26 +0800
commit04a964a4f6ec4980596d253b0cd746512aed619e (patch)
tree9877e62f428f9cca2ec0611da2399dab1ec21009 /mail/folder-browser.c
parent30ab2294f2719d62838f95e9117301153ef20540 (diff)
downloadgsoc2013-evolution-04a964a4f6ec4980596d253b0cd746512aed619e.tar
gsoc2013-evolution-04a964a4f6ec4980596d253b0cd746512aed619e.tar.gz
gsoc2013-evolution-04a964a4f6ec4980596d253b0cd746512aed619e.tar.bz2
gsoc2013-evolution-04a964a4f6ec4980596d253b0cd746512aed619e.tar.lz
gsoc2013-evolution-04a964a4f6ec4980596d253b0cd746512aed619e.tar.xz
gsoc2013-evolution-04a964a4f6ec4980596d253b0cd746512aed619e.tar.zst
gsoc2013-evolution-04a964a4f6ec4980596d253b0cd746512aed619e.zip
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
Diffstat (limited to 'mail/folder-browser.c')
-rw-r--r--mail/folder-browser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mail/folder-browser.c b/mail/folder-browser.c
index 0f09f8b7fd..b2b9f2f2f3 100644
--- a/mail/folder-browser.c
+++ b/mail/folder-browser.c
@@ -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);
}