diff --git a/channels.cpp b/channels.cpp index 4e77d692..3647b144 100644 --- a/channels.cpp +++ b/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;