dcavalca / rpms / util-linux

Forked from rpms/util-linux 2 years ago
Clone

Blame SOURCES/0107-libblkid-zfs-let-s-keep-compiler-happy.patch

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