From 62af220c9e675da7020a3e1eb573052fb5bf1998 Mon Sep 17 00:00:00 2001 From: Dave Wysochanski Date: Fri, 10 Aug 2007 13:33:49 +0000 Subject: [PATCH] Fix "lvconvert -s" from always failing with argument error message. Patch by Jun'ichi Nomura . --- WHATS_NEW | 1 + tools/lvconvert.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/WHATS_NEW b/WHATS_NEW index e14392480..7168779a3 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.28 - ================================ + Fix "lvconvert -s" from always failing with argument error message. Add more cluster info to lvmdump Add const attributes where possible, first cut. Add support for renaming mirrored LVs. diff --git a/tools/lvconvert.c b/tools/lvconvert.c index ba1f1aafb..fc516880a 100644 --- a/tools/lvconvert.c +++ b/tools/lvconvert.c @@ -101,7 +101,7 @@ static int _lvconvert_name_params(struct lvconvert_params *lp, static int _read_params(struct lvconvert_params *lp, struct cmd_context *cmd, int argc, char **argv) { - int count; + int count = 0; int region_size; int pagesize = lvm_getpagesize();