diff --git a/stand/i386/zfsboot/zfsboot.c b/stand/i386/zfsboot/zfsboot.c index 90e4066ab5ed..457e4fe85b42 100644 --- a/stand/i386/zfsboot/zfsboot.c +++ b/stand/i386/zfsboot/zfsboot.c @@ -708,7 +708,9 @@ main(void) setheap(heap_next, heap_end); zdsk = malloc(sizeof(struct zfsdsk)); +#ifdef LOADER_GELI_SUPPORT zdsk->gdev = NULL; +#endif zdsk->dsk.drive = *(uint8_t *)PTOV(ARGS); zdsk->dsk.type = zdsk->dsk.drive & DRV_HARD ? TYPE_AD : TYPE_FD; zdsk->dsk.unit = zdsk->dsk.drive & DRV_MASK;