mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cov: always initialized values
Make sure values are initialized for all possible paths.
This commit is contained in:
parent
85e2c7e14d
commit
a481f42630
@ -176,7 +176,7 @@ static int _udev_dev_is_md_component(struct device *dev)
|
||||
*/
|
||||
static int _native_dev_is_md_component(struct device *dev, uint64_t *offset_found, int full)
|
||||
{
|
||||
uint64_t size, sb_offset;
|
||||
uint64_t size, sb_offset = 0;
|
||||
int ret;
|
||||
|
||||
if (!scan_bcache)
|
||||
|
@ -663,7 +663,7 @@ static int _read_hint_file(struct cmd_context *cmd, struct dm_list *hints, int *
|
||||
int found = 0;
|
||||
int keylen;
|
||||
int hv_major, hv_minor;
|
||||
int major, minor;
|
||||
int major = -1, minor = -1;
|
||||
int ret = 1;
|
||||
int i;
|
||||
|
||||
|
@ -5614,7 +5614,7 @@ static int _set_writecache_block_size(struct cmd_context *cmd,
|
||||
uint32_t block_size = 0;
|
||||
int lbs_unknown = 0, lbs_4k = 0, lbs_512 = 0;
|
||||
int pbs_unknown = 0, pbs_4k = 0, pbs_512 = 0;
|
||||
int rv;
|
||||
int rv = 0;
|
||||
|
||||
/* This is set if the user specified a writecache block size on the command line. */
|
||||
if (*block_size_sectors)
|
||||
|
Loading…
Reference in New Issue
Block a user