1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-10 16:58:47 +03:00

cleanup: simplier string reset

This commit is contained in:
Zdenek Kabelac 2013-07-19 15:32:49 +02:00
parent ea68f08501
commit 05a70f2da3

View File

@ -1567,7 +1567,7 @@ struct lvmcache_info *lvmcache_add(struct labeller *labeller, const char *pvid,
static void _lvmcache_destroy_entry(struct lvmcache_info *info)
{
_vginfo_detach_info(info);
strcpy(info->dev->pvid, "");
info->dev->pvid[0] = 0;
label_destroy(info->label);
dm_free(info);
}