[evolution-data-server] Fixes a crash - do not use e_msgport_get after getting the reply



commit 812c27071d33bd6dba631c83a9034902bd2c0e82
Author: Chenthill Palanisamy <pchenthill novell com>
Date:   Fri Oct 23 10:07:26 2009 +0530

    Fixes a crash - do not use e_msgport_get after getting the reply
    using e_msgport_wait.

 camel/providers/imapx/camel-imapx-server.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index da6b5ee..e1c8a1c 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -2327,7 +2327,7 @@ camel_imapx_server_new(CamelStore *store, CamelURL *url)
 
 	is->url = camel_url_copy(url);
 //	camel_url_set_user(is->url, "camel");
-	camel_url_set_passwd(is->url, "camel");
+	camel_url_set_passwd(is->url, "novell");
 
 	return is;
 }
@@ -2369,8 +2369,8 @@ imapx_run_job(CamelIMAPXServer *is, CamelIMAPXJob *job)
 	}
 
 	if (!job->noreply) {
-		e_msgport_wait(reply);
-		g_assert(e_msgport_get(reply) == (EMsg *)job);
+		EMsg *completed = e_msgport_wait(reply);
+		g_assert(completed == (EMsg *)job);
 		e_msgport_destroy(reply);
 	}
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]