mirror of
git://sourceware.org/git/lvm2.git
synced 2025-08-03 08:22:00 +03:00
cov: variable initialization
This commit is contained in:
@ -761,7 +761,7 @@ out:
|
||||
|
||||
static void _device_ids_update_try(struct cmd_context *cmd)
|
||||
{
|
||||
int held;
|
||||
int held = 0;
|
||||
|
||||
/* Defer updates to non-pvscan-cache commands. */
|
||||
if (cmd->pvscan_cache_single) {
|
||||
|
@ -379,7 +379,7 @@ static int _text_read(struct cmd_context *cmd, struct labeller *labeller, struct
|
||||
struct label_header *lh = (struct label_header *) label_buf;
|
||||
struct pv_header *pvhdr;
|
||||
struct pv_header_extension *pvhdr_ext;
|
||||
struct metadata_area *mda;
|
||||
struct metadata_area *mda = NULL;
|
||||
struct metadata_area *mda1 = NULL;
|
||||
struct metadata_area *mda2 = NULL;
|
||||
struct disk_locn *dlocn_xl;
|
||||
|
@ -1088,7 +1088,7 @@ static int _get_args(struct cmd_context *cmd, int argc, char **argv,
|
||||
struct arg_value_group_list *current_group;
|
||||
struct pvscan_arg *arg;
|
||||
const char *arg_name;
|
||||
int major, minor;
|
||||
int major = -1, minor = -1;
|
||||
|
||||
/* Process position args, which can be /dev/name or major:minor */
|
||||
|
||||
|
Reference in New Issue
Block a user