localsocket: fix use of unitialized variable

This commit is contained in:
Matheus
2024-09-19 17:23:43 -03:00
parent 0a7bd14049
commit 87ef9ba76b
+1 -3
View File
@@ -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);