From e88e9ee9eda8981cccb03d053189d05718891d53 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Fri, 24 Jun 2016 01:10:04 +0200 Subject: [PATCH] cleanup: clean warns from older gcc Don't report uninitialized use by older gcc. --- lib/cache/lvmetad.c | 4 ++-- 1 file 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())