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:
parent
ea68f08501
commit
05a70f2da3
2
lib/cache/lvmcache.c
vendored
2
lib/cache/lvmcache.c
vendored
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user