tree-wide: use -EBADF also in pipe initializers
In some places, initialization is dropped when unnecesary.
This commit is contained in:
@@ -487,8 +487,8 @@ static int add_connection_socket(Context *context, int fd) {
|
||||
.context = context,
|
||||
.server_fd = fd,
|
||||
.client_fd = -EBADF,
|
||||
.server_to_client_buffer = {-1, -1},
|
||||
.client_to_server_buffer = {-1, -1},
|
||||
.server_to_client_buffer = { -EBADF, -EBADF },
|
||||
.client_to_server_buffer = { -EBADF, -EBADF },
|
||||
};
|
||||
|
||||
r = set_ensure_put(&context->connections, NULL, c);
|
||||
|
||||
Reference in New Issue
Block a user