summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2016-06-24 01:10:04 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2016-06-24 01:10:04 +0200
commite88e9ee9eda8981cccb03d053189d05718891d53 (patch)
tree16c7a208ba742d6bd9c77da98e0503e974e34ff5
parent5070e7fcf79a3bcb21982d219c6f8dd484e523ea (diff)
downloadlvm2-e88e9ee9eda8981cccb03d053189d05718891d53.tar.gz
cleanup: clean warns from older gcc
Don't report uninitialized use by older gcc.
-rw-r--r--lib/cache/lvmetad.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/cache/lvmetad.c b/lib/cache/lvmetad.c
index ee44202ce..a0a17ac1a 100644
--- a/lib/cache/lvmetad.c
+++ b/lib/cache/lvmetad.c
@@ -1484,8 +1484,8 @@ int lvmetad_pv_found(struct cmd_context *cmd, const struct id *pvid, struct devi
daemon_reply reply;
struct lvmcache_info *info;
struct dm_config_tree *pvmeta, *vgmeta;
- const char *status, *vgname;
- int64_t changed;
+ const char *status = NULL, *vgname = NULL;
+ int64_t changed = 0;
int result;
if (!lvmetad_used() || test_mode())