diff --git a/src/event/ServerSocket.cxx b/src/event/ServerSocket.cxx index db4679cf0..3457465c9 100644 --- a/src/event/ServerSocket.cxx +++ b/src/event/ServerSocket.cxx @@ -198,7 +198,7 @@ OneServerSocket::Open() } ServerSocket::ServerSocket(EventLoop &_loop) noexcept - :loop(_loop), next_serial(1) {} + :loop(_loop) {} /* this is just here to allow the OneServerSocket forward declaration */ diff --git a/src/event/ServerSocket.hxx b/src/event/ServerSocket.hxx index 201d0ae2f..8acdd7ae9 100644 --- a/src/event/ServerSocket.hxx +++ b/src/event/ServerSocket.hxx @@ -39,7 +39,7 @@ class ServerSocket { std::list sockets; - unsigned next_serial; + unsigned next_serial = 1; public: ServerSocket(EventLoop &_loop) noexcept;