diff --git a/src/boot/efi/boot.c b/src/boot/efi/boot.c index 6c0f956c32..b4decc152d 100644 --- a/src/boot/efi/boot.c +++ b/src/boot/efi/boot.c @@ -2255,9 +2255,9 @@ static EFI_STATUS initrd_prepare( assert(ret_initrd_size); if (entry->type != LOADER_LINUX || !entry->initrd) { - ret_options = NULL; - ret_initrd = NULL; - ret_initrd_size = 0; + *ret_options = NULL; + *ret_initrd = NULL; + *ret_initrd_size = 0; return EFI_SUCCESS; }