]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
boot: fix assignment of ret_* variables in `initrd_prepare()`
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Thu, 18 Apr 2024 09:58:07 +0000 (11:58 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 18 Apr 2024 12:13:38 +0000 (14:13 +0200)
src/boot/efi/boot.c

index 6c0f956c32f17cc052f1216818770e21dc04ea4c..b4decc152d0369451ed1c7e7759abdab7de115c8 100644 (file)
@@ -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;
         }