mail[Wesnoth-commits] r28891 - /trunk/src/server/jwsmtp/compat.h


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

Header


Content

Posted by koraq on August 23, 2008 - 21:44:
Author: mordante
Date: Sat Aug 23 21:14:05 2008
New Revision: 28891

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28891&view=rev
Log:
Initialize all members.

Modified:
    trunk/src/server/jwsmtp/compat.h

Modified: trunk/src/server/jwsmtp/compat.h
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/server/jwsmtp/compat.h?rev=28891&r1=28890&r2=28891&view=diff
==============================================================================
--- trunk/src/server/jwsmtp/compat.h (original)
+++ trunk/src/server/jwsmtp/compat.h Sat Aug 23 21:14:05 2008
@@ -88,7 +88,10 @@
   // need a real check and set ok appropriately  
 //  SOCKADDR_IN(sockaddr_in addr):ADDR(addr), ok(true) {}
   
-  SOCKADDR_IN(const std::string& address, unsigned short port, short family 
= AF_INET) {
+  SOCKADDR_IN(const std::string& address, unsigned short port, short family 
= AF_INET) 
+       : ADDR()
+       , ok(false)
+  {
     ADDR.sin_port = port;
     ADDR.sin_family = family;
 #ifdef _WIN32
@@ -99,10 +102,12 @@
 #endif
   }
 
-  SOCKADDR_IN(const SOCKADDR_IN& addr) {
-    ADDR = addr.ADDR;
-    ok = addr.ok;
+  SOCKADDR_IN(const SOCKADDR_IN& addr)
+       : ADDR(addr.ADDR)
+       , ok(addr.ok)
+  {
   }
+
   SOCKADDR_IN operator = (const SOCKADDR_IN& addr) {
     ADDR = addr.ADDR;
     ok = addr.ok;




Related Messages


Powered by MHonArc, Updated Sat Aug 23 22:01:54 2008