libt2n: (tomj) fix bug in fill_connection_buffers() returning true even though no...
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Wed, 19 Nov 2008 09:36:15 +0000 (09:36 +0000)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Wed, 19 Nov 2008 09:36:15 +0000 (09:36 +0000)
src/socket_server.cpp

index 1fc99d8..e2110bd 100644 (file)
@@ -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<unsigned int, server_connection*>::iterator ie=connections.end();
     for(std::map<unsigned int, server_connection*>::iterator i=connections.begin(); i != ie; i++)