dovecot-2.1: Compiling fix for non-gcc.

dovecot at dovecot.org dovecot at dovecot.org
Wed Nov 23 01:00:33 EET 2011


details:   http://hg.dovecot.org/dovecot-2.1/rev/1cdd39d11ce4
changeset: 13747:1cdd39d11ce4
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Nov 23 01:00:10 2011 +0200
description:
Compiling fix for non-gcc.

diffstat:

 src/lib-imap-client/imapc-connection.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 3501e62284dc -r 1cdd39d11ce4 src/lib-imap-client/imapc-connection.c
--- a/src/lib-imap-client/imapc-connection.c	Tue Nov 22 11:29:17 2011 +0200
+++ b/src/lib-imap-client/imapc-connection.c	Wed Nov 23 01:00:10 2011 +0200
@@ -1447,11 +1447,14 @@
 static void imapc_command_send_finished(struct imapc_connection *conn,
 					struct imapc_command *cmd)
 {
+	struct imapc_command *const *cmdp;
+
 	if (cmd->idle)
 		conn->idle_plus_waiting = TRUE;
 
 	/* everything sent. move command to wait list. */
-	i_assert(*array_idx(&conn->cmd_send_queue, 0) == cmd);
+	cmdp = array_idx(&conn->cmd_send_queue, 0);
+	i_assert(*cmdp == cmd);
 	array_delete(&conn->cmd_send_queue, 0, 1);
 	array_append(&conn->cmd_wait_list, &cmd, 1);
 


More information about the dovecot-cvs mailing list