]> git.tuebingen.mpg.de Git - paraslash.git/commit
net.c: Silence clang warning.
authorAndre Noll <maan@tuebingen.mpg.de>
Sun, 11 Jun 2017 10:13:22 +0000 (12:13 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Wed, 14 Jun 2017 17:54:01 +0000 (19:54 +0200)
commitb79ea15c3dcc872452405b021bce7d196a7115dc
treeac8aca1e66675f7d88bc7ac2b97e7978597a8609
parentc6dc6e36a70e580892d8bc190cd41376f449bdfd
net.c: Silence clang warning.

clang-3.8.0 on FreeBSD complains about a recent change to net.c:

net.c:606:33: warning: missing field 'ss_family' initializer [-Wmissing-field-initializers]
struct sockaddr_storage ss = {0};
       ^
This line was introduced in commit 63128eea (net: Always initialize
struct sockaddr_storage) to avoid a warning from the static analyzer
of clang. Setting .ss_family initializes all struct members, which
makes both the analyzer and the compiler happy again.
net.c