ipaccess-find: Address a warning by coverity of unitialized memory

Use a memset on the sockaddr_in to make coverity happy.

Fixes: CID 1040705
This commit is contained in:
Holger Hans Peter Freyther
2013-07-03 10:19:37 +02:00
parent 8690b98e7c
commit d5c270e71c

View File

@@ -47,6 +47,7 @@ static int udp_sock(const char *ifname)
goto err;
}
memset(&sa, 0, sizeof(sa));
sa.sin_family = AF_INET;
sa.sin_port = htons(3006);
sa.sin_addr.s_addr = INADDR_ANY;