1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

coverity: 21071: no need to init accept_fd

This commit is contained in:
Andy Green 2020-08-18 13:12:36 +01:00
parent 7ded454d2d
commit ad6dfd3df6

View file

@ -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;