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

lvmetad: initialize cft value

the error should not test garbage value.
This commit is contained in:
Zdenek Kabelac 2012-10-12 10:35:01 +02:00
parent 28776b9526
commit c4dcbf67a3

View File

@ -663,7 +663,7 @@ static int vg_remove_if_missing(lvmetad_state *s, const char *vgid)
static int update_metadata(lvmetad_state *s, const char *name, const char *_vgid,
struct dm_config_node *metadata, int64_t *oldseq)
{
struct dm_config_tree *cft;
struct dm_config_tree *cft = NULL;
struct dm_config_tree *old;
int retval = 0;
int seq;