1
0
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:
Zdenek Kabelac 2018-11-30 22:26:26 +01:00
parent d8ad73e937
commit 5a5e3bcf15

View File

@ -356,7 +356,7 @@ static int _process_block(struct cmd_context *cmd, struct dev_filter *f,
char label_buf[LABEL_SIZE] __attribute__((aligned(8)));
struct label *label = NULL;
struct labeller *labeller;
uint64_t sector;
uint64_t sector = 0;
int ret = 0;
int pass;