1
0
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:
Zdenek Kabelac
2021-03-09 16:05:46 +01:00
parent bee9b5c1d8
commit 8a03675241
3 changed files with 3 additions and 3 deletions

View File

@ -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) {

View File

@ -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;

View File

@ -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 */