mindtct: Fix "garbage value" error in dft_dir_powers()

libfprint/nbis/mindtct/dft.c:212:30: warning: The left operand of '*' is a garbage value
      cospart += (rowsums[i] * wave->cos[i]);
                  ~~~~~~~~~~ ^
This commit is contained in:
Bastien Nocera 2018-12-12 17:06:36 +01:00
parent 69fe7a1b8c
commit 74bb899ce2

View file

@ -118,6 +118,7 @@ int dft_dir_powers(double **powers, unsigned char *pdata,
fprintf(stderr, "ERROR : dft_dir_powers : malloc : rowsums\n");
return(-91);
}
memset(rowsums, 0, dftgrids->grid_w * sizeof(int));
/* Foreach direction ... */
for(dir = 0; dir < dftgrids->ngrids; dir++){