diff options
author | NeilBrown <neilb@suse.de> | 2009-05-11 15:47:10 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-05-11 15:47:10 +1000 |
commit | ac7de9d97a4a5693ec733574d04eb38a65e08922 (patch) | |
tree | 23e9e0ba644a3ad904c10fa65b17a8c1c5c6e7af /Incremental.c | |
parent | 339c2d6c5e45394ff903c347d410897651c4aee1 (diff) | |
download | mdadm-ac7de9d97a4a5693ec733574d04eb38a65e08922.tar.gz mdadm-ac7de9d97a4a5693ec733574d04eb38a65e08922.tar.xz mdadm-ac7de9d97a4a5693ec733574d04eb38a65e08922.zip |
Incremental: fix uninitialised variable.
st2 might not be initialised at this point. So use the
more correct 'st'.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Incremental.c')
-rw-r--r-- | Incremental.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Incremental.c b/Incremental.c index ec94be4..84f56a9 100644 --- a/Incremental.c +++ b/Incremental.c @@ -391,14 +391,14 @@ int Incremental(char *devname, int verbose, int runstop, /* add disk needs to know about containers */ if (st->ss->external) sra->array.level = LEVEL_CONTAINER; - err = add_disk(mdfd, st2, sra, &info2); + err = add_disk(mdfd, st, sra, &info2); if (err < 0 && errno == EBUSY) { /* could be another device present with the same * disk.number. Find and reject any such */ find_reject(mdfd, st, sra, info.disk.number, info.events, verbose, chosen_name); - err = add_disk(mdfd, st2, sra, &info2); + err = add_disk(mdfd, st, sra, &info2); } if (err < 0) { fprintf(stderr, Name ": failed to add %s to %s: %s.\n", |