We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6089960 commit a23330dCopy full SHA for a23330d
1 file changed
src/ip.cpp
@@ -557,6 +557,7 @@ int zmq::make_fdpair (fd_t *r_, fd_t *w_)
557
socklen_t lcladdr_len = sizeof lcladdr;
558
int rc = 0;
559
int saved_errno = 0;
560
+ SOCKET listener = INVALID_SOCKET;
561
562
// It appears that a lack of runtime AF_UNIX support
563
// can fail in more than one way.
@@ -569,7 +570,7 @@ int zmq::make_fdpair (fd_t *r_, fd_t *w_)
569
570
}
571
572
// Create a listening socket.
- const SOCKET listener = open_socket (AF_UNIX, SOCK_STREAM, 0);
573
+ listener = open_socket (AF_UNIX, SOCK_STREAM, 0);
574
if (listener == retired_fd) {
575
// This may happen if the library was built on a system supporting AF_UNIX, but the system running doesn't support it.
576
goto try_tcpip;
0 commit comments