tree-wide: use -EBADF also in pipe initializers

In some places, initialization is dropped when unnecesary.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2022-12-19 15:00:59 +01:00
parent a5937dcf39
commit 3401477982
42 changed files with 68 additions and 65 deletions
+2 -2
View File
@@ -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);