diff options
author | Uli Schlachter <psychon@duemmer.Informatik.Uni-Oldenburg.DE> | 2013-01-29 15:05:44 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-02-04 09:30:21 +0100 |
commit | a4223aac38a4c576d30be1b882fc340dfa8d68d6 (patch) | |
tree | ae8b6f78ae3e34dd483903dda0211c81e786d4d6 | |
parent | 2bb751d9fac54c2b94499d476735730e416a8f4f (diff) | |
download | mpd-a4223aac38a4c576d30be1b882fc340dfa8d68d6.tar.gz mpd-a4223aac38a4c576d30be1b882fc340dfa8d68d6.tar.xz mpd-a4223aac38a4c576d30be1b882fc340dfa8d68d6.zip |
ServerSocket: Initialize length variable
Diffstat (limited to '')
-rw-r--r-- | src/event/ServerSocket.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event/ServerSocket.cxx b/src/event/ServerSocket.cxx index d444933a0..8536774dc 100644 --- a/src/event/ServerSocket.cxx +++ b/src/event/ServerSocket.cxx @@ -304,7 +304,7 @@ ServerSocket::AddFD(int fd, GError **error_r) assert(fd >= 0); struct sockaddr_storage address; - socklen_t address_length; + socklen_t address_length = sizeof(address); if (getsockname(fd, (struct sockaddr *)&address, &address_length) < 0) { SetSocketError(error_r); |