diff --git a/usr.bin/sockstat/sockstat.c b/usr.bin/sockstat/sockstat.c index 97add95457a..6235f828579 100644 --- a/usr.bin/sockstat/sockstat.c +++ b/usr.bin/sockstat/sockstat.c @@ -561,7 +561,7 @@ gather_inet(int proto) { struct xinpgen *xig, *exig; struct xinpcb *xip; - struct xtcpcb *xtp; + struct xtcpcb *xtp = NULL; struct xsocket *so; struct sock *sock; struct addr *laddr, *faddr;