Always initialize pl_event.

Submitted by:	Andrey Zonov <andrey@zonov.org>
MFC after:	3 days
This commit is contained in:
Konstantin Belousov 2012-08-08 00:20:30 +00:00
parent 0a1a3230b6
commit c0c6e95f7f

View file

@ -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;