mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
gcc: ensure sector is initilized
Some older gcc errnously report the variable can be used uninitlized. Quite warning by explicit initalization.
This commit is contained in:
parent
d8ad73e937
commit
5a5e3bcf15
@ -356,7 +356,7 @@ static int _process_block(struct cmd_context *cmd, struct dev_filter *f,
|
|||||||
char label_buf[LABEL_SIZE] __attribute__((aligned(8)));
|
char label_buf[LABEL_SIZE] __attribute__((aligned(8)));
|
||||||
struct label *label = NULL;
|
struct label *label = NULL;
|
||||||
struct labeller *labeller;
|
struct labeller *labeller;
|
||||||
uint64_t sector;
|
uint64_t sector = 0;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
int pass;
|
int pass;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user