Skip to content

Commit

Permalink
Always initialize pl_event.
Browse files Browse the repository at this point in the history
Submitted by:	Andrey Zonov <andrey@zonov.org>
MFC after:	3 days
  • Loading branch information
kostikbel committed Aug 8, 2012
1 parent 49a4eab commit 2ded225
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sys/kern/sys_process.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2ded225

Please sign in to comment.