From 6c0673233c7aeeabb0cc5093f7b6712f9a9a7cbe Mon Sep 17 00:00:00 2001 From: cancel Date: Wed, 22 Jan 2020 22:50:06 +0900 Subject: [PATCH] Cleanup --- osc_out.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/osc_out.c b/osc_out.c index 934920f..67a35c5 100644 --- a/osc_out.c +++ b/osc_out.c @@ -18,8 +18,7 @@ struct Oosc_dev { Oosc_udp_create_error oosc_dev_create_udp(Oosc_dev **out_ptr, char const *dest_addr, char const *dest_port) { - struct addrinfo hints; - memset(&hints, 0, sizeof(hints)); + struct addrinfo hints = {0}; hints.ai_family = AF_UNSPEC; hints.ai_socktype = SOCK_DGRAM; hints.ai_protocol = 0;