]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - src/installer/hw.c
installer: Intialize part_boot_efi_idx
[ipfire-2.x.git] / src / installer / hw.c
index b329db545b843729f609214f7d53afbf37257dbe..71a1f1cce369fb027ce65a2e5b5ae919f4a6ae66 100644 (file)
@@ -547,8 +547,10 @@ static int hw_calculate_partition_table(struct hw* hw, struct hw_destination* de
 
                snprintf(dest->part_boot_efi, sizeof(dest->part_boot_efi),
                        "%s%d", path, part_idx++);
-       } else
+       } else {
                *dest->part_boot_efi = '\0';
+               dest->part_boot_efi_idx = 0;
+       }
 
        if (dest->size_swap > 0)
                snprintf(dest->part_swap, sizeof(dest->part_swap), "%s%d", path, part_idx++);