mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 23:18:21 +00:00
localsocket: fix use of unitialized variable
This commit is contained in:
@@ -299,8 +299,7 @@ static int recvctrl(socket_t *socket, sockctrl_t *ctrl, size_t len, bool *trunca
|
|||||||
fd_release(file);
|
fd_release(file);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (file != NULL)
|
*truncated = file != NULL;
|
||||||
*truncated = true;
|
|
||||||
|
|
||||||
localsocket->filesremaining[localsocket->barriercurrent] = 0;
|
localsocket->filesremaining[localsocket->barriercurrent] = 0;
|
||||||
|
|
||||||
@@ -378,7 +377,6 @@ static int localsock_send(socket_t *socket, sockdesc_t *sockdesc) {
|
|||||||
goto leave;
|
goto leave;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// signal that there is data to read for any threads blocked on the peer socket
|
// signal that there is data to read for any threads blocked on the peer socket
|
||||||
poll_event(&peer->socket.pollheader, POLLIN);
|
poll_event(&peer->socket.pollheader, POLLIN);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user