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:
parent
69fe7a1b8c
commit
74bb899ce2
1 changed files with 1 additions and 0 deletions
|
@ -118,6 +118,7 @@ int dft_dir_powers(double **powers, unsigned char *pdata,
|
||||||
fprintf(stderr, "ERROR : dft_dir_powers : malloc : rowsums\n");
|
fprintf(stderr, "ERROR : dft_dir_powers : malloc : rowsums\n");
|
||||||
return(-91);
|
return(-91);
|
||||||
}
|
}
|
||||||
|
memset(rowsums, 0, dftgrids->grid_w * sizeof(int));
|
||||||
|
|
||||||
/* Foreach direction ... */
|
/* Foreach direction ... */
|
||||||
for(dir = 0; dir < dftgrids->ngrids; dir++){
|
for(dir = 0; dir < dftgrids->ngrids; dir++){
|
||||||
|
|
Loading…
Reference in a new issue