diff --git a/src/udp_tracker_connection.cpp b/src/udp_tracker_connection.cpp index 36b65abca..209e970f7 100644 --- a/src/udp_tracker_connection.cpp +++ b/src/udp_tracker_connection.cpp @@ -191,7 +191,8 @@ namespace libtorrent { #if defined TORRENT_VERBOSE_LOGGING || defined TORRENT_LOGGING || defined TORRENT_ERROR_LOGGING boost::shared_ptr cb = requester(); - std::stringstream msg << "*** UDP_TRACKER [ timed out url: " << tracker_req().url << " ]"; + std::stringstream msg; + msg << "*** UDP_TRACKER [ timed out url: " << tracker_req().url << " ]"; if (cb) cb->debug_log(msg.str().c_str()); #endif m_socket.close(); @@ -393,7 +394,8 @@ namespace libtorrent if (cb) { boost::shared_ptr cb = requester(); - std::stringstream msg << "<== UDP_ANNOUNCE_RESPONSE [ url: " << tracker_req().url << " ]"; + std::stringstream msg; + msg << "<== UDP_ANNOUNCE_RESPONSE [ url: " << tracker_req().url << " ]"; cb->debug_log(msg.str().c_str()); } #endif