]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
super0: set uninitialized variable.
authorNeilBrown <neilb@suse.de>
Tue, 18 Jun 2013 23:51:01 +0000 (09:51 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 18 Jun 2013 23:51:01 +0000 (09:51 +1000)
Reported by -O3

Signed-off-by: NeilBrown <neilb@suse.de>
super0.c

index e4bbe3e1a0f9585c5d65b4e4813c8a2aeaae574e..47981ac24dc003dc83d0ed2f0e7e46b10a2f8334 100644 (file)
--- 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);