Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/mach Outch, uninitialized variable. How could tha...



details:   https://anonhg.NetBSD.org/src/rev/b880a6d10eb2
branches:  trunk
changeset: 555697:b880a6d10eb2
user:      manu <manu%NetBSD.org@localhost>
date:      Tue Nov 25 17:09:24 2003 +0000

description:
Outch, uninitialized variable. How could that work before?

diffstat:

 sys/compat/mach/mach_notify.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 883727604544 -r b880a6d10eb2 sys/compat/mach/mach_notify.c
--- a/sys/compat/mach/mach_notify.c     Tue Nov 25 15:33:58 2003 +0000
+++ b/sys/compat/mach/mach_notify.c     Tue Nov 25 17:09:24 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mach_notify.c,v 1.7 2003/11/20 07:12:34 manu Exp $ */
+/*     $NetBSD: mach_notify.c,v 1.8 2003/11/25 17:09:24 manu Exp $ */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mach_notify.c,v 1.7 2003/11/20 07:12:34 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mach_notify.c,v 1.8 2003/11/25 17:09:24 manu Exp $");
 
 #include "opt_ktrace.h"
 #include "opt_compat_mach.h" /* For COMPAT_MACH in <sys/ktrace.h> */
@@ -263,6 +263,7 @@
        struct mach_port *exc_port;
        int error;
 
+       med = l->l_proc->p_emuldata;
        if ((exc_port = med->med_exc[exc]) == NULL)
                return EINVAL;
 



Home | Main Index | Thread Index | Old Index