mail[Wesnoth-commits] r28348 - /branches/1.4/src/network.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by paniemin on August 07, 2008 - 07:43:
Author: suokko
Date: Wed Aug  6 17:44:21 2008
New Revision: 28348

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28348&view=rev
Log:
Fixed compilation warning about unitialized variable

Modified:
    branches/1.4/src/network.cpp

Modified: branches/1.4/src/network.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/branches/1.4/src/network.cpp?rev=28348&r1=28347&r2=28348&view=diff
==============================================================================
--- branches/1.4/src/network.cpp (original)
+++ branches/1.4/src/network.cpp Wed Aug  6 17:44:21 2008
@@ -1032,7 +1032,7 @@
 //     log_scope2(network, "sending data");
        if(!connection_num) {
                DBG_NW << "sockets: " << sockets.size() << "\n";
-               size_t size;
+               size_t size = 0; 
                for(sockets_list::const_iterator i = sockets.begin();
                    i != sockets.end(); ++i) {
                        DBG_NW << "server socket: " << server_socket << 
"\ncurrent socket: " << *i << "\n";




Related Messages


Powered by MHonArc, Updated Thu Aug 07 09:00:50 2008