mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +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);
|
||||
}
|
||||
|
||||
if (file != NULL)
|
||||
*truncated = true;
|
||||
*truncated = file != NULL;
|
||||
|
||||
localsocket->filesremaining[localsocket->barriercurrent] = 0;
|
||||
|
||||
@@ -378,7 +377,6 @@ static int localsock_send(socket_t *socket, sockdesc_t *sockdesc) {
|
||||
goto leave;
|
||||
}
|
||||
|
||||
|
||||
// signal that there is data to read for any threads blocked on the peer socket
|
||||
poll_event(&peer->socket.pollheader, POLLIN);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user