Author: bryanv
Date: Thu Aug 28 04:20:24 2014
New Revision: 270739
URL: http://svnweb.freebsd.org/changeset/base/270739

Log:
  MFC r267632:
  
    Fix GCC compile warning: Variable(s) can be used uninitialized.
  
  PR:           193076

Modified:
  stable/10/sys/dev/vmware/vmxnet3/if_vmx.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/vmware/vmxnet3/if_vmx.c
==============================================================================
--- stable/10/sys/dev/vmware/vmxnet3/if_vmx.c   Thu Aug 28 03:18:27 2014        
(r270738)
+++ stable/10/sys/dev/vmware/vmxnet3/if_vmx.c   Thu Aug 28 04:20:24 2014        
(r270739)
@@ -2619,10 +2619,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 *);
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to