File parted-fix-check-diskp-in-do_name.patch of Package parted
diff --git a/parted/parted.c b/parted/parted.c index 2678554..a9426c4 100644 --- a/parted/parted.c +++ b/parted/parted.c @@ -860,7 +860,7 @@ do_name (PedDevice** dev, PedDisk** diskp) if (!*diskp) *diskp = ped_disk_new (*dev); - if (!diskp) + if (!*diskp) goto error; if (!ped_disk_type_check_feature((*diskp)->type, PED_DISK_TYPE_PARTITION_NAME)) {