summaryrefslogtreecommitdiffstats
path: root/super0.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2013-06-19 01:51:01 +0200
committerNeilBrown <neilb@suse.de>2013-06-19 01:51:01 +0200
commitf69bb60857aaa0e82806c6b027f57cb4af519a18 (patch)
treea11b434f5101eca4f3297990646fa7b7005f7a3d /super0.c
parentAssemble/Incr: Don't include spares with too-high event count. (diff)
downloadmdadm-f69bb60857aaa0e82806c6b027f57cb4af519a18.tar.xz
mdadm-f69bb60857aaa0e82806c6b027f57cb4af519a18.zip
super0: set uninitialized variable.
Reported by -O3 Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'super0.c')
-rw-r--r--super0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/super0.c b/super0.c
index e4bbe3e1..47981ac2 100644
--- a/super0.c
+++ b/super0.c
@@ -832,7 +832,7 @@ static int store_super0(struct supertype *st, int fd)
if (st->other) {
/* Writing out v1.0 metadata for --update=metadata */
- int ret;
+ int ret = 0;
offset = dsize/512 - 8*2;
offset &= ~(4*2-1);