summaryrefslogtreecommitdiff
path: root/sys/compat/linux
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2003-10-25 18:37:49 +0000
committerchristos <christos@NetBSD.org>2003-10-25 18:37:49 +0000
commit4bec333ae413d3d3f40e93beeae673a2ffbfc7ac (patch)
treeabf0e6f21035640ba5bae1e7ce540e400efb5e1e /sys/compat/linux
parent72315d3199ab1f1e192b5173b6d984739c6da10a (diff)
Fix uninitialized variable warnings
Diffstat (limited to 'sys/compat/linux')
-rw-r--r--sys/compat/linux/common/linux_socket.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/compat/linux/common/linux_socket.c b/sys/compat/linux/common/linux_socket.c
index 58fa5afd5fd..d88bc83ce29 100644
--- a/sys/compat/linux/common/linux_socket.c
+++ b/sys/compat/linux/common/linux_socket.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_socket.c,v 1.49 2003/07/27 19:30:03 jdolecek Exp $ */
+/* $NetBSD: linux_socket.c,v 1.50 2003/10/25 18:38:42 christos Exp $ */
/*-
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_socket.c,v 1.49 2003/07/27 19:30:03 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_socket.c,v 1.50 2003/10/25 18:38:42 christos Exp $");
#if defined(_KERNEL_OPT)
#include "opt_inet.h"
@@ -665,8 +665,8 @@ linux_sys_recvmsg(l, v, retval)
int error;
struct sys_recvmsg_args bsa;
int lflags;
- u_int8_t *ocontrol;
- socklen_t ocontrollen;
+ u_int8_t *ocontrol = NULL; /* XXX: gcc */
+ socklen_t ocontrollen = 0;
/*
* Data alignment is different on some architectures. If control