libt2n: (tomj) fix bug in fill_connection_buffers() returning true even though no...
[libt2n] / 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++)