OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/parted?expand=0&rev=105
18 lines
523 B
Diff
18 lines
523 B
Diff
---
|
|
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:
|