1
0
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:
Zdenek Kabelac 2016-02-22 10:45:01 +01:00
parent 44b3909e58
commit 30a73d1604
2 changed files with 2 additions and 1 deletions

View File

@ -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
View File

@ -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;