File libparted-initialize-dasd-part-type.patch of Package parted.3440

---
 libparted/labels/dasd.c |    2 ++
 1 file changed, 2 insertions(+)

Index: parted-3.1/libparted/labels/dasd.c
===================================================================
--- parted-3.1.orig/libparted/labels/dasd.c
+++ parted-3.1/libparted/labels/dasd.c
@@ -659,6 +659,8 @@ dasd_partition_new (const PedDisk* disk,
 		goto error;
 
 	part->disk_specific = ped_malloc (sizeof (DasdPartitionData));
+	if (part->disk_specific)
+		memset(part->disk_specific, 0, sizeof(DasdPartitionData));
 	return part;
 
 error:
openSUSE Build Service is sponsored by