Commit 74bb899c authored by Bastien Nocera's avatar Bastien Nocera

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]);
                  ~~~~~~~~~~ ^
parent 69fe7a1b
......@@ -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++){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment