[lvm-devel] [PATCH 11/11] Move initialization of cmd->fmt into init_formats().
Alasdair G Kergon
agk at redhat.com
Wed Dec 10 22:56:49 UTC 2008
On Wed, Dec 10, 2008 at 01:11:01PM -0500, Dave Wysochanski wrote:
> diff --git a/lib/commands/toolcontext.c b/lib/commands/toolcontext.c
> index 186a816..e66972c 100644
> --- a/lib/commands/toolcontext.c
> +++ b/lib/commands/toolcontext.c
> @@ -787,6 +787,7 @@ static int _init_formats(struct cmd_context *cmd)
> return 1;
> }
> }
> + cmd->fmt = cmd->default_settings.fmt;
Move up just before the 'return 1' above?
Alasdair
--
agk at redhat.com
More information about the lvm-devel
mailing list