From c91d35b1597c9c5398317341971d7c07ba6686df Mon Sep 17 00:00:00 2001 From: weidai Date: Fri, 18 Jul 2003 02:52:49 +0000 Subject: [PATCH] fix bug in ChannelSwitch::ChannelCreatePutSpace() when a channel has only one route --- trunk/c5/channels.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trunk/c5/channels.cpp b/trunk/c5/channels.cpp index 4e77d692..3647b144 100644 --- a/trunk/c5/channels.cpp +++ b/trunk/c5/channels.cpp @@ -230,9 +230,10 @@ byte * ChannelSwitch::ChannelCreatePutSpace(const std::string &channel, unsigned if (!m_it.End()) { BufferedTransformation &target = m_it.Destination(); + const std::string &channel = m_it.Channel(); m_it.Next(); if (m_it.End()) // there is only one target channel - return target.ChannelCreatePutSpace(m_it.Channel(), size); + return target.ChannelCreatePutSpace(channel, size); } size = 0; return NULL;