mirror of
https://github.com/rkd77/elinks.git
synced 2025-06-30 22:19:29 -04:00
win32: avoid the segfault introduced by previous commit
This commit is contained in:
parent
5558284c08
commit
f2a2c69ccc
@ -590,6 +590,7 @@ select_one_loop(int num_fds, struct fd_set *rd, struct fd_set *wr,
|
|||||||
errno = WSAGetLastError();
|
errno = WSAGetLastError();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (wr) {
|
||||||
sel_rc = select(fd + 1, NULL, &sock_wr, NULL, &tv);
|
sel_rc = select(fd + 1, NULL, &sock_wr, NULL, &tv);
|
||||||
if (sel_rc > 0) {
|
if (sel_rc > 0) {
|
||||||
FD_SET (fd, wr);
|
FD_SET (fd, wr);
|
||||||
@ -597,6 +598,7 @@ select_one_loop(int num_fds, struct fd_set *rd, struct fd_set *wr,
|
|||||||
} else if (sel_rc < 0) {
|
} else if (sel_rc < 0) {
|
||||||
errno = WSAGetLastError();
|
errno = WSAGetLastError();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
sel_rc = select(fd + 1, NULL, NULL, &sock_ex, &tv);
|
sel_rc = select(fd + 1, NULL, NULL, &sock_ex, &tv);
|
||||||
if (sel_rc > 0) {
|
if (sel_rc > 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user