summaryrefslogtreecommitdiffstats
path: root/src/partgpt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/partgpt.c')
-rw-r--r--src/partgpt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/partgpt.c b/src/partgpt.c
index f4e7d10..4947f57 100644
--- a/src/partgpt.c
+++ b/src/partgpt.c
@@ -336,8 +336,9 @@ static list_part_t *init_part_order_gpt(const disk_t *disk_car, list_part_t *lis
list_part_t *add_partition_gpt_cli(disk_t *disk_car,list_part_t *list_part, char **current_cmd)
{
+ partition_t *new_partition;
assert(current_cmd!=NULL);
- partition_t *new_partition=partition_new(&arch_gpt);
+ new_partition=partition_new(&arch_gpt);
new_partition->part_offset=disk_car->sector_size;
new_partition->part_size=disk_car->disk_size-new_partition->part_offset;
while(*current_cmd[0]==',')