]> sourceware.org Git - lvm2.git/commitdiff
Initialise _vginfos list staticaly so there is no problem with using uninitialised
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 30 Apr 2010 12:54:31 +0000 (12:54 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 30 Apr 2010 12:54:31 +0000 (12:54 +0000)
variables in case, lvmcache_destory() is called without lvmcache_init().

lib/cache/lvmcache.c

index 73102ecea916452f80b2dd7aa913c0a75ce1023d..0e31a4eedced1884ab5ce58c33417e1f45f61de3 100644 (file)
@@ -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;
This page took 0.039696 seconds and 5 git commands to generate.