From: Antonio Alvarez Feijoo Date: Thu, 18 Apr 2024 09:58:07 +0000 (+0200) Subject: boot: fix assignment of ret_* variables in `initrd_prepare()` X-Git-Tag: v256-rc1~136 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2fe5c4b981177bf77f3b40d1e3d19d9ad8bb71d;p=thirdparty%2Fsystemd.git boot: fix assignment of ret_* variables in `initrd_prepare()` --- 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; }