linuxdcpp-team team mailing list archive
-
linuxdcpp-team team
-
Mailing list archive
-
Message #01283
[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 2157: Fix C-isms from previous commit
------------------------------------------------------------
revno: 2157
committer: Razzloss <razzloss@xxxxxxxxx>
branch nick: dcplusplus
timestamp: Sun 2010-06-06 15:08:16 +0300
message:
Fix C-isms from previous commit
modified:
dcpp/Socket.cpp
--
lp:dcplusplus
https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk
Your team Dcplusplus-team is subscribed to branch lp:dcplusplus.
To unsubscribe from this branch go to https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk/+edit-subscription
=== modified file 'dcpp/Socket.cpp'
--- dcpp/Socket.cpp 2010-06-06 11:52:52 +0000
+++ dcpp/Socket.cpp 2010-06-06 12:08:16 +0000
@@ -551,9 +551,9 @@
}
#else
// POSIX doesn't guarantee the gethostbyname to be thread safe. And it may (will) return a pointer to static data.
- struct addrinfo hints, *result;
string address = Util::emptyString;
- memset(&hints, 0, sizeof(struct addrinfo));
+ addrinfo hints = { 0 };
+ addrinfo *result;
hints.ai_family = AF_INET;
if (getaddrinfo(aDns.c_str(), NULL, &hints, &result) == 0) {