diff --git a/sys/kern/kern_ktrace.c b/sys/kern/kern_ktrace.c index e6d3b87ed82a..f7b11fd9f57b 100644 --- a/sys/kern/kern_ktrace.c +++ b/sys/kern/kern_ktrace.c @@ -1327,6 +1327,8 @@ ktrwrite(struct ktr_desc *ktd, struct ktrace_entry *kte) struct ktr_header *kth; file_t *fp = ktd->ktd_fp; int error; + + memset(aiov, 0, sizeof(aiov)); next: auio.uio_iov = iov = &aiov[0]; auio.uio_offset = 0;