diff --git a/dap-sdk/net/server-udp/dap_udp_server.c b/dap-sdk/net/server-udp/dap_udp_server.c
index e75b837c4e246faeadae4c8b90668c42338f8a97..12c1c82120c35e0cb5981dc38c1eca371a45f555 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;