From cbb408166e7077c99af57d97bf571b1e8ed6aded Mon Sep 17 00:00:00 2001 From: "aleksei.voronin" <aleksei.voronin@demlabs.net> Date: Sun, 19 Jul 2020 21:08:10 +0300 Subject: [PATCH] upd --- dap-sdk/net/server-udp/dap_udp_server.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dap-sdk/net/server-udp/dap_udp_server.c b/dap-sdk/net/server-udp/dap_udp_server.c index e75b837c4e..12c1c82120 100644 --- a/dap-sdk/net/server-udp/dap_udp_server.c +++ b/dap-sdk/net/server-udp/dap_udp_server.c @@ -345,10 +345,8 @@ void dap_udp_server_loop( dap_server_t *d_server ) sb_payload_ready = false; - struct epoll_event pev; - struct epoll_event events[ 16 ]; - - memset(&pev, 0, sizeof (pev)); + struct epoll_event pev = {0, {0}}; + struct epoll_event events[ 16 ] = {{0, {0}}}; pev.events = EPOLLIN | EPOLLERR; pev.data.fd = d_server->socket_listener; -- GitLab