mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-23 10:50:34 +03:00
Initialise _vginfos list staticaly so there is no problem with using uninitialised
variables in case, lvmcache_destory() is called without lvmcache_init().
This commit is contained in:
parent
78b8276111
commit
4f732b1989
2
lib/cache/lvmcache.c
vendored
2
lib/cache/lvmcache.c
vendored
@ -31,7 +31,7 @@ static struct dm_hash_table *_pvid_hash = NULL;
|
||||
static struct dm_hash_table *_vgid_hash = NULL;
|
||||
static struct dm_hash_table *_vgname_hash = NULL;
|
||||
static struct dm_hash_table *_lock_hash = NULL;
|
||||
static struct dm_list _vginfos;
|
||||
static DM_LIST_INIT(_vginfos);
|
||||
static int _scanning_in_progress = 0;
|
||||
static int _has_scanned = 0;
|
||||
static int _vgs_locked = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user