From 4313157666e6185de9e8f30cac109b8b7a760a45 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Sun, 11 Jun 2006 16:37:46 +0000 Subject: [PATCH] fix accidentally changed == vs != operators --HG-- extra : convert_revision : a2345a9e53fcb35bde9f3701406e285c1ef80481 --- common-channel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common-channel.c b/common-channel.c index 0cd6ef8..11760ec 100644 --- a/common-channel.c +++ b/common-channel.c @@ -273,14 +273,14 @@ static void checkclose(struct Channel *channel) { if (!channel->senteof && channel->readfd == FD_CLOSED - && (channel->extrabuf == NULL || channel->errfd == FD_CLOSED)) { + && (channel->extrabuf != NULL || channel->errfd == FD_CLOSED)) { send_msg_channel_eof(channel); } if (!channel->sentclosed && channel->writefd == FD_CLOSED && channel->readfd == FD_CLOSED - && (channel->extrabuf == NULL || channel->errfd == FD_CLOSED)) { + && (channel->extrabuf != NULL || channel->errfd == FD_CLOSED)) { send_msg_channel_close(channel); }