mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
lvmetad: fix error path
Coverity noticed the internal error path would be using uninit struct. So always make sure reply is initilized.
This commit is contained in:
parent
44b3909e58
commit
30a73d1604
@ -1,5 +1,6 @@
|
||||
Version 2.02.144 -
|
||||
=====================================
|
||||
Fix error path for internal error in lvmetad vg lookup code.
|
||||
|
||||
Version 2.02.143 - 21st February 2016
|
||||
=====================================
|
||||
|
2
lib/cache/lvmetad.c
vendored
2
lib/cache/lvmetad.c
vendored
@ -507,7 +507,7 @@ struct volume_group *lvmetad_vg_lookup(struct cmd_context *cmd, const char *vgna
|
||||
{
|
||||
struct volume_group *vg = NULL;
|
||||
struct volume_group *vg2 = NULL;
|
||||
daemon_reply reply;
|
||||
daemon_reply reply = { 0 };
|
||||
int found;
|
||||
char uuid[64];
|
||||
struct format_instance *fid = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user