Fix an access of an uninitialized variable in dtrace_probe().

Reported by:	Coverity, via cem
MFC after:	3 days
This commit is contained in:
markj 2018-03-18 17:01:50 +00:00
parent 6b16e7e1bb
commit 8c0db0b007

View File

@ -7318,7 +7318,7 @@ dtrace_probe(dtrace_id_t id, uintptr_t arg0, uintptr_t arg1,
}
now = mstate.dtms_timestamp = dtrace_gethrtime();
mstate.dtms_present |= DTRACE_MSTATE_TIMESTAMP;
mstate.dtms_present = DTRACE_MSTATE_TIMESTAMP;
vtime = dtrace_vtime_references != 0;
if (vtime && curthread->t_dtrace_start)