cdown / rpms / util-linux

Forked from rpms/util-linux 2 years ago
Clone
05ad79
From eda050c1fc9f65fc138c9fabf35ef7865c5b10a7 Mon Sep 17 00:00:00 2001
05ad79
From: Karel Zak <kzak@redhat.com>
05ad79
Date: Fri, 30 May 2014 11:27:41 +0200
05ad79
Subject: [PATCH 107/116] libblkid: (zfs) let's keep compiler happy
05ad79
05ad79
Upstream: http://github.com/karelzak/util-linux/commit/59cbbd71cdfb6a6fc6901e287b300aa8d45d6606
05ad79
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1392661
05ad79
Signed-off-by: Karel Zak <kzak@redhat.com>
05ad79
---
05ad79
 libblkid/src/superblocks/zfs.c | 2 +-
05ad79
 1 file changed, 1 insertion(+), 1 deletion(-)
05ad79
05ad79
diff --git a/libblkid/src/superblocks/zfs.c b/libblkid/src/superblocks/zfs.c
05ad79
index 56ee472..86da59d 100644
05ad79
--- a/libblkid/src/superblocks/zfs.c
05ad79
+++ b/libblkid/src/superblocks/zfs.c
05ad79
@@ -171,7 +171,7 @@ static int probe_zfs(blkid_probe pr,
05ad79
 	uint64_t swab_magic = swab64(UBERBLOCK_MAGIC);
05ad79
 	struct zfs_uberblock *ub;
05ad79
 	int swab_endian;
05ad79
-	loff_t offset, ub_offset;
05ad79
+	loff_t offset, ub_offset = 0;
05ad79
 	int tried;
05ad79
 	int found;
05ad79
 
05ad79
-- 
05ad79
2.9.3
05ad79