Module Name:    src
Committed By:   mrg
Date:           Sun Jul  3 09:03:32 UTC 2011

Modified Files:
        src/sys/netinet: udp_usrreq.c

Log Message:
avoid an uninitialised variable warning.  this one seems a false
positive, but since it's for some hacky workaround code anyway...


To generate a diff of this commit:
cvs rdiff -u -r1.180 -r1.181 src/sys/netinet/udp_usrreq.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/netinet/udp_usrreq.c
diff -u src/sys/netinet/udp_usrreq.c:1.180 src/sys/netinet/udp_usrreq.c:1.181
--- src/sys/netinet/udp_usrreq.c:1.180	Tue May  3 18:28:45 2011
+++ src/sys/netinet/udp_usrreq.c	Sun Jul  3 09:03:32 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: udp_usrreq.c,v 1.180 2011/05/03 18:28:45 dyoung Exp $	*/
+/*	$NetBSD: udp_usrreq.c,v 1.181 2011/07/03 09:03:32 mrg Exp $	*/
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: udp_usrreq.c,v 1.180 2011/05/03 18:28:45 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: udp_usrreq.c,v 1.181 2011/07/03 09:03:32 mrg Exp $");
 
 #include "opt_inet.h"
 #include "opt_compat_netbsd.h"
@@ -1300,6 +1300,7 @@
 	{
 		struct in_addr laddr;			/* XXX */
 
+		memset(&laddr, 0, sizeof laddr);
 		if (nam) {
 			laddr = inp->inp_laddr;		/* XXX */
 			if ((so->so_state & SS_ISCONNECTED) != 0) {

Reply via email to