]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
Merge branch 'master_fix-partition-copy' of https://github.com/vojtechtrefny/util...
authorKarel Zak <kzak@redhat.com>
Mon, 22 Jul 2019 09:35:12 +0000 (11:35 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 22 Jul 2019 09:35:12 +0000 (11:35 +0200)
libfdisk/src/partition.c

index 05474a041c2b52364a07ba7da4ec58b7c4f77783..55ce1ca5cce38fe9a104b1b4f4fe65a8f37c7081 100644 (file)
@@ -100,6 +100,10 @@ static struct fdisk_partition *__copy_partition(struct fdisk_partition *o)
                n->fsuuid = strdup(o->fsuuid);
        if (o->fslabel)
                n->fslabel = strdup(o->fslabel);
+       if (o->start_chs)
+               n->start_chs = strdup(o->start_chs);
+       if (o->end_chs)
+               n->end_chs = strdup(o->end_chs);
 
        return n;
 }