mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-02 19:51:15 +00:00
Fixed variable to right scope
This commit is contained in:
parent
866c9ee95a
commit
04d3e3c756
@ -420,8 +420,9 @@ static SOCKET_STATE send_file(buffer* buf)
|
||||
poll_res = poll(&fd, 1, 600000);
|
||||
} while(poll_res == -1 && errno == EINTR);
|
||||
|
||||
SOCKET_STATE result;
|
||||
if (poll_res > 0)
|
||||
SOCKET_STATE result = send_buffer(buf->sock, buffer, 4);
|
||||
result = send_buffer(buf->sock, buffer, 4);
|
||||
else
|
||||
result = SOCKET_ERRORED;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user