diff options
author | kib <kib@FreeBSD.org> | 2012-08-08 00:20:30 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2012-08-08 00:20:30 +0000 |
commit | 2ded2254c098b9bd9b9916e0d0ce48beb0176164 (patch) | |
tree | 64c3e7864d2cddb143d113aebd67da5824ef9659 /sys/kern/sys_process.c | |
parent | 49a4eabe45ca039dfcf30db341e2dfcf355748bb (diff) | |
download | FreeBSD-src-2ded2254c098b9bd9b9916e0d0ce48beb0176164.zip FreeBSD-src-2ded2254c098b9bd9b9916e0d0ce48beb0176164.tar.gz |
Always initialize pl_event.
Submitted by: Andrey Zonov <andrey@zonov.org>
MFC after: 3 days
Diffstat (limited to 'sys/kern/sys_process.c')
-rw-r--r-- | sys/kern/sys_process.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c index 10209ec..3883fe4 100644 --- a/sys/kern/sys_process.c +++ b/sys/kern/sys_process.c @@ -1112,6 +1112,7 @@ kern_ptrace(struct thread *td, int req, pid_t pid, void *addr, int data) #endif pl = addr; pl->pl_lwpid = td2->td_tid; + pl->pl_event = PL_EVENT_NONE; pl->pl_flags = 0; if (td2->td_dbgflags & TDB_XSIG) { pl->pl_event = PL_EVENT_SIGNAL; |