summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat/unix.c
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>2013-02-19 13:17:16 +0000
committercharnier <charnier@FreeBSD.org>2013-02-19 13:17:16 +0000
commit8f92a0e98309ecb478adf087a1888c41e6819e5a (patch)
treeb8da1a2add099df3348fe17875ba77ff773e1af0 /usr.bin/netstat/unix.c
parented1bf36a9bfc86b67d5309cb1fd48a828bbe8222 (diff)
downloadFreeBSD-src-8f92a0e98309ecb478adf087a1888c41e6819e5a.zip
FreeBSD-src-8f92a0e98309ecb478adf087a1888c41e6819e5a.tar.gz
WARNS=6 compliance
Diffstat (limited to 'usr.bin/netstat/unix.c')
-rw-r--r--usr.bin/netstat/unix.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/netstat/unix.c b/usr.bin/netstat/unix.c
index 9a643c2..027e812 100644
--- a/usr.bin/netstat/unix.c
+++ b/usr.bin/netstat/unix.c
@@ -199,6 +199,7 @@ unixpr(u_long count_off, u_long gencnt_off, u_long dhead_off, u_long shead_off,
struct xunpcb *xunp;
u_long head_off;
+ buf = NULL;
for (type = SOCK_STREAM; type <= SOCK_SEQPACKET; type++) {
if (live)
ret = pcblist_sysctl(type, &buf);
OpenPOWER on IntegriCloud