From: Thomas Jarosch Date: Wed, 19 Nov 2008 09:36:15 +0000 (+0000) Subject: libt2n: (tomj) fix bug in fill_connection_buffers() returning true even though no... X-Git-Tag: v0.5~15 X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=commitdiff_plain;h=20a05ab726b8935e914fe832a08a519a1fba2920 libt2n: (tomj) fix bug in fill_connection_buffers() returning true even though no data is available --- diff --git a/src/socket_server.cpp b/src/socket_server.cpp index 1fc99d8..e2110bd 100644 --- a/src/socket_server.cpp +++ b/src/socket_server.cpp @@ -240,7 +240,7 @@ bool socket_server::fill_buffer(long long usec_timeout,long long* usec_timeout_r /// call fill_buffer() on all connections, called from fill_buffer() bool socket_server::fill_connection_buffers() { - bool data_found; + bool data_found = false; std::map::iterator ie=connections.end(); for(std::map::iterator i=connections.begin(); i != ie; i++)