mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-31 21:18:26 +03:00
tidying
This commit is contained in:
parent
5a72a50367
commit
3daa9f6e53
@ -157,6 +157,8 @@ static struct dm_ioctl *_flatten(struct dm_task *dmt)
|
|||||||
if (!(dmi = malloc(len)))
|
if (!(dmi = malloc(len)))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
memset(dmi, 0, len);
|
||||||
|
|
||||||
strncpy(dmi->version, DM_IOCTL_VERSION, sizeof(dmi->version));
|
strncpy(dmi->version, DM_IOCTL_VERSION, sizeof(dmi->version));
|
||||||
dmi->data_size = len;
|
dmi->data_size = len;
|
||||||
strncpy(dmi->name, dmt->dev_name, sizeof(dmi->name));
|
strncpy(dmi->name, dmt->dev_name, sizeof(dmi->name));
|
||||||
|
Loading…
Reference in New Issue
Block a user