Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/compat/netbsd32/netbsd32_signal.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/compat/netbsd32/netbsd32_signal.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.34 retrieving revision 1.34.4.1 diff -u -p -r1.34 -r1.34.4.1 --- src/sys/compat/netbsd32/netbsd32_signal.c 2010/04/23 15:19:20 1.34 +++ src/sys/compat/netbsd32/netbsd32_signal.c 2011/02/08 16:19:47 1.34.4.1 @@ -1,4 +1,4 @@ -/* $NetBSD: netbsd32_signal.c,v 1.34 2010/04/23 15:19:20 rmind Exp $ */ +/* $NetBSD: netbsd32_signal.c,v 1.34.4.1 2011/02/08 16:19:47 bouyer Exp $ */ /* * Copyright (c) 1998, 2001 Matthew R. Green @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: netbsd32_signal.c,v 1.34 2010/04/23 15:19:20 rmind Exp $"); +__KERNEL_RCSID(0, "$NetBSD: netbsd32_signal.c,v 1.34.4.1 2011/02/08 16:19:47 bouyer Exp $"); #include #include @@ -361,6 +361,8 @@ netbsd32_getcontext(struct lwp *l, const struct proc *p = l->l_proc; ucontext32_t uc; + memset(&uc, 0, sizeof(uc)); + mutex_enter(p->p_lock); getucontext32(l, &uc); mutex_exit(p->p_lock);