1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
This commit is contained in:
Joe Thornber 2001-10-10 17:11:31 +00:00
parent 2d9133bbbd
commit dcca4d2081

View File

@ -512,9 +512,8 @@ int export_uuids(struct disk_list *dl, struct volume_group *vg)
return 0; return 0;
} }
memset(&ul->uuid, 0, NAME_LEN); memset(&ul->uuid, 0, sizeof(ul->uuid));
memcpy(&ul->uuid, &pvl->pv.id.uuid, ID_LEN); memcpy(&ul->uuid, &pvl->pv.id.uuid, ID_LEN);
ul->uuid[ID_LEN] = '\0';
list_add(&ul->list, &dl->uuids); list_add(&ul->list, &dl->uuids);
} }