eServerSocket: trivial cosmetic.
authorErik Slagter <erik@openpli.org>
Thu, 17 Dec 2015 19:37:42 +0000 (20:37 +0100)
committerErik Slagter <erik@openpli.org>
Thu, 17 Dec 2015 19:37:42 +0000 (20:37 +0100)
The variable is initialised twice.

lib/network/serversocket.cpp

index 3e93ec7..836b16e 100644 (file)
@@ -144,7 +144,8 @@ eServerSocket::~eServerSocket()
 
 int eServerSocket::startListening(struct addrinfo *addr)
 {
-       struct addrinfo *ptr = addr;
+       struct addrinfo *ptr;
+
        for (ptr = addr; ptr != NULL; ptr = ptr->ai_next)
        {
                if (setSocket(socket(ptr->ai_family, ptr->ai_socktype, ptr->ai_protocol), 1) < 0)