From e2fe5c4b981177bf77f3b40d1e3d19d9ad8bb71d Mon Sep 17 00:00:00 2001 From: Antonio Alvarez Feijoo Date: Thu, 18 Apr 2024 11:58:07 +0200 Subject: [PATCH] boot: fix assignment of ret_* variables in `initrd_prepare()` --- src/boot/efi/boot.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/boot/efi/boot.c b/src/boot/efi/boot.c index 6c0f956c32f..b4decc152d0 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; } -- 2.47.3