diff options
Diffstat (limited to 'src/jerasure.c')
-rw-r--r-- | src/jerasure.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/jerasure.c b/src/jerasure.c index bb577af..d2af918 100644 --- a/src/jerasure.c +++ b/src/jerasure.c @@ -273,9 +273,10 @@ int *jerasure_matrix_to_bitmatrix(int k, int m, int w, int *matrix) int *bitmatrix; int rowelts, rowindex, colindex, elt, i, j, l, x; - bitmatrix = talloc(int, k*m*w*w); if (matrix == NULL) { return NULL; } + bitmatrix = talloc(int, k*m*w*w); + rowelts = k * w; rowindex = 0; |