mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
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:
@@ -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++){
|
||||||
|
|||||||
Reference in New Issue
Block a user