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 eb0842d17c
commit d66e5c3ed4
1 changed files with 1 additions and 0 deletions

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;