1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

Move assignments around to avoid a false-positive uninitialized variable

warning which broke the sparc64 build.

PR:		201585
MFC after:	3 weeks
This commit is contained in:
Dag-Erling Smørgrav 2015-07-17 08:37:13 +00:00
parent a1ed88571f
commit cf24373c3b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=285651

View File

@ -598,9 +598,10 @@ gather_inet(int proto)
xig = (struct xinpgen *)(void *)((char *)xig + xig->xig_len);
if (xig >= exig)
break;
xip = (struct xinpcb *)xig;
xtp = (struct xtcpcb *)xig;
switch (proto) {
case IPPROTO_TCP:
xtp = (struct xtcpcb *)xig;
if (xtp->xt_len != sizeof(*xtp)) {
warnx("struct xtcpcb size mismatch");
goto out;
@ -612,7 +613,6 @@ gather_inet(int proto)
break;
case IPPROTO_UDP:
case IPPROTO_DIVERT:
xip = (struct xinpcb *)xig;
if (xip->xi_len != sizeof(*xip)) {
warnx("struct xinpcb size mismatch");
goto out;