[evolution-data-server] Bug #622710 - Crash in imapx_idle_supported due to cinfo being NULL
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Bug #622710 - Crash in imapx_idle_supported due to cinfo being NULL
- Date: Fri, 25 Jun 2010 12:28:25 +0000 (UTC)
commit 5b28a27d21ab3fd7263b2165c5ca49048759d6f4
Author: Milan Crha <mcrha redhat com>
Date: Fri Jun 25 14:27:42 2010 +0200
Bug #622710 - Crash in imapx_idle_supported due to cinfo being NULL
camel/providers/imapx/camel-imapx-server.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index f7c9c91..991e5c0 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -2196,7 +2196,7 @@ imapx_in_idle (CamelIMAPXServer *is)
static gboolean
imapx_idle_supported (CamelIMAPXServer *is)
{
- return (is->cinfo->capa & IMAPX_CAPABILITY_IDLE && is->use_idle);
+ return (is->cinfo && (is->cinfo->capa & IMAPX_CAPABILITY_IDLE) != 0 && is->use_idle);
}
// end IDLE
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]