From 64d6b0d4c345808fe59616af640a767717c96dfa Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Thu, 1 Apr 2021 01:21:11 +0200 Subject: [PATCH] [raop] Fix scan-build make warning after removing switch in commit 98dad07 --- src/outputs/airplay.c | 2 +- src/outputs/raop.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/outputs/airplay.c b/src/outputs/airplay.c index e1678379..060a32d3 100644 --- a/src/outputs/airplay.c +++ b/src/outputs/airplay.c @@ -2241,7 +2241,7 @@ static void control_svc_cb(int fd, short what, void *arg) { struct airplay_service *svc = arg; - union net_sockaddr peer_addr; + union net_sockaddr peer_addr = { 0 }; socklen_t peer_addrlen = sizeof(peer_addr); char address[INET6_ADDRSTRLEN]; struct airplay_session *rs; diff --git a/src/outputs/raop.c b/src/outputs/raop.c index 86494c1c..b49be536 100644 --- a/src/outputs/raop.c +++ b/src/outputs/raop.c @@ -3072,7 +3072,7 @@ static void control_svc_cb(int fd, short what, void *arg) { struct raop_service *svc; - union net_sockaddr peer_addr; + union net_sockaddr peer_addr = { 0 }; socklen_t peer_addrlen = sizeof(peer_addr); char address[INET6_ADDRSTRLEN]; struct raop_session *rs;