From c9f80d82cc15ae9b672378778705e3fbca3f1067 Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Thu, 6 Feb 2025 14:09:20 +0100 Subject: [PATCH] silence Codacy warning --- modules/libcom/test/fdManagerTest.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/libcom/test/fdManagerTest.cpp b/modules/libcom/test/fdManagerTest.cpp index 0d8751412..0dc1b330c 100644 --- a/modules/libcom/test/fdManagerTest.cpp +++ b/modules/libcom/test/fdManagerTest.cpp @@ -73,8 +73,7 @@ public: } osiSockAddr bind() { - osiSockAddr addr; - memset(&addr, 0, sizeof(addr)); + osiSockAddr addr = {0}; addr.ia.sin_family = AF_INET; addr.ia.sin_addr.s_addr = htonl(INADDR_LOOPBACK);