From ad6dfd3df65b4a58726647b20ae34e7bb76059f5 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Tue, 18 Aug 2020 13:12:36 +0100 Subject: [PATCH] coverity: 21071: no need to init accept_fd --- lib/roles/listen/ops-listen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/roles/listen/ops-listen.c b/lib/roles/listen/ops-listen.c index b5354ec26..e63ef05a6 100644 --- a/lib/roles/listen/ops-listen.c +++ b/lib/roles/listen/ops-listen.c @@ -29,7 +29,7 @@ rops_handle_POLLIN_listen(struct lws_context_per_thread *pt, struct lws *wsi, struct lws_pollfd *pollfd) { struct lws_context *context = wsi->a.context; - lws_sockfd_type accept_fd = LWS_SOCK_INVALID; + lws_sockfd_type accept_fd; lws_sock_file_fd_type fd; struct sockaddr_storage cli_addr; socklen_t clilen;