diff options
author | Loic Dachary <loic@dachary.org> | 2013-09-16 23:04:23 +0200 |
---|---|---|
committer | Loic Dachary <loic@dachary.org> | 2013-09-16 23:04:23 +0200 |
commit | abd2fcd54a7497398793d6f784a5c840f29947dd (patch) | |
tree | 9cc0f92fbc68b33b8588c7d52ace5570bfa2def3 | |
parent | 01ec6a3fdf9da8b35cc034788ab306957d5fd969 (diff) | |
download | ceph-abd2fcd54a7497398793d6f784a5c840f29947dd.tar.gz |
ErasureCode: fix uninitialized variable warning
Signed-off-by: Loic Dachary <loic@dachary.org>
-rwxr-xr-x | src/osd/ErasureCodePluginJerasure/jerasure.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osd/ErasureCodePluginJerasure/jerasure.c b/src/osd/ErasureCodePluginJerasure/jerasure.c index 831ae2409a4..9efae02e5fb 100755 --- a/src/osd/ErasureCodePluginJerasure/jerasure.c +++ b/src/osd/ErasureCodePluginJerasure/jerasure.c @@ -1242,7 +1242,7 @@ int **jerasure_smart_bitmatrix_to_schedule(int k, int m, int w, int *bitmatrix) int *diff, *from, *b1, *flink, *blink; int *ptr, no, row; int optodo; - int bestrow, bestdiff, top; + int bestrow = 0, bestdiff, top; /* printf("Scheduling:\n\n"); jerasure_print_bitmatrix(bitmatrix, m*w, k*w, w); */ |