Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/mach lr is uninitialized if we goto out1



details:   https://anonhg.NetBSD.org/src/rev/f9132dd6c96c
branches:  trunk
changeset: 555707:f9132dd6c96c
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Nov 25 21:59:31 2003 +0000

description:
lr is uninitialized if we goto out1

diffstat:

 sys/compat/mach/mach_message.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 89515f7ea589 -r f9132dd6c96c sys/compat/mach/mach_message.c
--- a/sys/compat/mach/mach_message.c    Tue Nov 25 21:27:30 2003 +0000
+++ b/sys/compat/mach/mach_message.c    Tue Nov 25 21:59:31 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mach_message.c,v 1.30 2003/11/18 01:40:18 manu Exp $ */
+/*     $NetBSD: mach_message.c,v 1.31 2003/11/25 21:59:31 christos Exp $ */
 
 /*-
  * Copyright (c) 2002-2003 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mach_message.c,v 1.30 2003/11/18 01:40:18 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mach_message.c,v 1.31 2003/11/25 21:59:31 christos Exp $");
 
 #include "opt_ktrace.h"
 #include "opt_compat_mach.h" /* For COMPAT_MACH in <sys/ktrace.h> */
@@ -119,7 +119,7 @@
                struct mach_service *srv;
                mach_port_t ln;
                mach_port_t rn;
-               struct mach_right *lr;
+               struct mach_right *lr = NULL;
                struct mach_right *rr;
                int bits, rights;
 



Home | Main Index | Thread Index | Old Index