HomeFreeBSD

mtest: Prevent access to uninitialized value.

Description

mtest: Prevent access to uninitialized value.

case 'g' makes use of value n, which is initialized for case 'b'
and passe through to case 'g'. If case 'g' is called directly
value 'n' is not initialized.

Avoid the issue by initializing n before entering the switch.

CID: 1006375
Reviewed by: bms

Details

Provenance
pfgAuthored on
Reviewer
bms
Parents
rS297476: Add a cross reference to ktrace(2).
Branches
Unknown
Tags
Unknown