From 4f732b19890ccbd000aac25453ca4488905bc05d Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Fri, 30 Apr 2010 12:54:31 +0000 Subject: [PATCH] Initialise _vginfos list staticaly so there is no problem with using uninitialised variables in case, lvmcache_destory() is called without lvmcache_init(). --- lib/cache/lvmcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cache/lvmcache.c b/lib/cache/lvmcache.c index 73102ecea..0e31a4eed 100644 --- a/lib/cache/lvmcache.c +++ b/lib/cache/lvmcache.c @@ -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; -- 2.43.5