Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Sep 2019 18:25:43 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r351950 - head/sys/netinet
Message-ID:  <201909061825.x86IPhNo025207@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Fri Sep  6 18:25:42 2019
New Revision: 351950
URL: https://svnweb.freebsd.org/changeset/base/351950

Log:
  Initialize if_hw_tsomaxsegsize to 0 to appease gcc's flow analysis as a
  fail-safe.

Modified:
  head/sys/netinet/tcp_output.c

Modified: head/sys/netinet/tcp_output.c
==============================================================================
--- head/sys/netinet/tcp_output.c	Fri Sep  6 18:23:00 2019	(r351949)
+++ head/sys/netinet/tcp_output.c	Fri Sep  6 18:25:42 2019	(r351950)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909061825.x86IPhNo025207>