Date: Thu, 19 Jun 2014 05:10:03 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r267632 - head/sys/dev/vmware/vmxnet3 Message-ID: <201406190510.s5J5A3GH091151@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: hselasky Date: Thu Jun 19 05:10:03 2014 New Revision: 267632 URL: http://svnweb.freebsd.org/changeset/base/267632 Log: Fix GCC compile warning: Variable(s) can be used uninitialized. Modified: head/sys/dev/vmware/vmxnet3/if_vmx.c Modified: head/sys/dev/vmware/vmxnet3/if_vmx.c ============================================================================== --- head/sys/dev/vmware/vmxnet3/if_vmx.c Thu Jun 19 05:06:24 2014 (r267631) +++ head/sys/dev/vmware/vmxnet3/if_vmx.c Thu Jun 19 05:10:03 2014 (r267632) @@ -2607,10 +2607,12 @@ vmxnet3_txq_offload_ctx(struct vmxnet3_t struct ether_vlan_header *evh; int offset; #if defined(INET) - struct ip *ip, iphdr; + struct ip *ip = NULL; + struct ip iphdr; #endif #if defined(INET6) - struct ip6_hdr *ip6, ip6hdr; + struct ip6_hdr *ip6 = NULL; + struct ip6_hdr ip6hdr; #endif evh = mtod(m, struct ether_vlan_header *);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406190510.s5J5A3GH091151>