svn commit: r267632 - head/sys/dev/vmware/vmxnet3
Hans Petter Selasky
hselasky at FreeBSD.org
Thu Jun 19 05:10:03 UTC 2014
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 *);
More information about the svn-src-head
mailing list