File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -557,6 +557,7 @@ int zmq::make_fdpair (fd_t *r_, fd_t *w_)
557
557
socklen_t lcladdr_len = sizeof lcladdr;
558
558
int rc = 0 ;
559
559
int saved_errno = 0 ;
560
+ SOCKET listener = INVALID_SOCKET;
560
561
561
562
// It appears that a lack of runtime AF_UNIX support
562
563
// can fail in more than one way.
@@ -569,7 +570,7 @@ int zmq::make_fdpair (fd_t *r_, fd_t *w_)
569
570
}
570
571
571
572
// Create a listening socket.
572
- const SOCKET listener = open_socket (AF_UNIX, SOCK_STREAM, 0 );
573
+ listener = open_socket (AF_UNIX, SOCK_STREAM, 0 );
573
574
if (listener == retired_fd) {
574
575
// This may happen if the library was built on a system supporting AF_UNIX, but the system running doesn't support it.
575
576
goto try_tcpip;
You can’t perform that action at this time.
0 commit comments