1
0
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:
Zdenek Kabelac 2024-04-03 23:59:21 +02:00
parent c78970c0d0
commit fa81c7561f

View File

@ -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[])
{
int i;
int takes_arg;
int takes_arg = 0;
int prev_was_opt = 0, prev_was_pos = 0;
int orig_ro_count = 0;