diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2016-06-24 01:10:04 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2016-06-24 01:10:04 +0200 |
commit | e88e9ee9eda8981cccb03d053189d05718891d53 (patch) | |
tree | 16c7a208ba742d6bd9c77da98e0503e974e34ff5 | |
parent | 5070e7fcf79a3bcb21982d219c6f8dd484e523ea (diff) | |
download | lvm2-e88e9ee9eda8981cccb03d053189d05718891d53.tar.gz |
cleanup: clean warns from older gcc
Don't report uninitialized use by older gcc.
-rw-r--r-- | lib/cache/lvmetad.c | 4 |
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()) |