summaryrefslogtreecommitdiffstats
path: root/libblkid
diff options
context:
space:
mode:
authorKarel Zak2018-05-03 10:30:51 +0200
committerKarel Zak2018-05-03 10:32:42 +0200
commit9a74f822719a1313af8be6bed29535240e14a411 (patch)
tree5a0396c7c1e45426bcaaecfdc942f6b85fd3afea /libblkid
parentfdisk: fix compiler warning [-Wmaybe-uninitialized] (diff)
downloadkernel-qcow2-util-linux-9a74f822719a1313af8be6bed29535240e14a411.tar.gz
kernel-qcow2-util-linux-9a74f822719a1313af8be6bed29535240e14a411.tar.xz
kernel-qcow2-util-linux-9a74f822719a1313af8be6bed29535240e14a411.zip
libblkid: (zfs) fix compiler warning [-Wmaybe-uninitialized]
Reported-by: L A Walsh <lkml@tlinx.org> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libblkid')
-rw-r--r--libblkid/src/superblocks/zfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libblkid/src/superblocks/zfs.c b/libblkid/src/superblocks/zfs.c
index 136087c23..ec3e1c5bf 100644
--- a/libblkid/src/superblocks/zfs.c
+++ b/libblkid/src/superblocks/zfs.c
@@ -219,7 +219,7 @@ static int probe_zfs(blkid_probe pr,
{
int swab_endian = 0;
struct zfs_uberblock *ub;
- loff_t offset, ub_offset = 0;
+ loff_t offset = 0, ub_offset = 0;
int label_no, found = 0, found_in_label;
void *label;
loff_t blk_align = (pr->size % (256 * 1024ULL));