mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cov: missing initializer
Ensure there is no code path with uninitialized takes_arg.
This commit is contained in:
parent
c78970c0d0
commit
fa81c7561f
@ -1171,7 +1171,7 @@ static void _include_required_opt_args(struct cmd_context *cmdtool, struct comma
|
|||||||
static void _add_required_line(struct cmd_context *cmdtool, struct command *cmd, int argc, char *argv[])
|
static void _add_required_line(struct cmd_context *cmdtool, struct command *cmd, int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
int takes_arg;
|
int takes_arg = 0;
|
||||||
int prev_was_opt = 0, prev_was_pos = 0;
|
int prev_was_opt = 0, prev_was_pos = 0;
|
||||||
int orig_ro_count = 0;
|
int orig_ro_count = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user