mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-22 06:50:52 +03:00
tidying
This commit is contained in:
parent
1c9606c824
commit
08e5b852c2
@ -157,6 +157,8 @@ static struct dm_ioctl *_flatten(struct dm_task *dmt)
|
||||
if (!(dmi = malloc(len)))
|
||||
return NULL;
|
||||
|
||||
memset(dmi, 0, len);
|
||||
|
||||
strncpy(dmi->version, DM_IOCTL_VERSION, sizeof(dmi->version));
|
||||
dmi->data_size = len;
|
||||
strncpy(dmi->name, dmt->dev_name, sizeof(dmi->name));
|
||||
|
Loading…
x
Reference in New Issue
Block a user