diff --git a/external/cddl/osnet/dist/lib/libzfs/common/libzfs_import.c b/external/cddl/osnet/dist/lib/libzfs/common/libzfs_import.c index b935e49076a5..4dafd3ef24c3 100644 --- a/external/cddl/osnet/dist/lib/libzfs/common/libzfs_import.c +++ b/external/cddl/osnet/dist/lib/libzfs/common/libzfs_import.c @@ -1099,6 +1099,7 @@ zpool_open_func(void *arg) off_t size; /* skip devices with wedges */ + memset(&dkwl, 0, sizeof(dkwl)); if (native_ioctl(fd, DIOCLWEDGES, &dkwl) == 0 && dkwl.dkwl_nwedges > 0) { (void) close(fd);