diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2019-06-25 22:49:24 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2019-07-06 01:24:28 +0200 |
commit | b0e1019add988b91fb41355566a34a3b2e182569 (patch) | |
tree | d222046762acc189f4a5bfa48aad5ab403633cbd | |
parent | 9aedf68c32f5ba7217b37e466546b5abb4f33f76 (diff) | |
download | lvm2-b0e1019add988b91fb41355566a34a3b2e182569.tar.gz |
gcc: clean uninitialized var warning
Some older gcc versions shows this (FP) warning:
label/label.c:360: warning: â€sector’ may be used uninitialized in this function
-rw-r--r-- | lib/label/label.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/label/label.c b/lib/label/label.c index d6212b15b..a535bd4d3 100644 --- a/lib/label/label.c +++ b/lib/label/label.c @@ -357,7 +357,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; |