From 82e837f803bf3af768de1d37dca1bfebf2d955d4 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Fri, 6 Sep 2019 18:25:42 +0000 Subject: [PATCH] Initialize if_hw_tsomaxsegsize to 0 to appease gcc's flow analysis as a fail-safe. --- sys/netinet/tcp_output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c index 8904da5fe2d..0032da418fc 100644 --- a/sys/netinet/tcp_output.c +++ b/sys/netinet/tcp_output.c @@ -195,7 +195,7 @@ tcp_output(struct tcpcb *tp) uint32_t recwin, sendwin; int off, flags, error = 0; /* Keep compiler happy */ u_int if_hw_tsomaxsegcount = 0; - u_int if_hw_tsomaxsegsize; + u_int if_hw_tsomaxsegsize = 0; struct mbuf *m; struct ip *ip = NULL; #ifdef TCPDEBUG