lib: Fix unintialised variable warning in fp_get_next_timeout()
libfprint/fpi-poll.c:398:11: warning: The left operand of '==' is a garbage value else if (timercmp(&fprint_timeout, &libusb_timeout, <)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/sys/time.h:162:17: note: expanded from macro 'timercmp' (((a)->tv_sec == (b)->tv_sec) ? \ ~~~~~~~~~~~ ^
This commit is contained in:
parent
6d47c44335
commit
0ddd11f81b
1 changed files with 2 additions and 2 deletions
|
@ -373,8 +373,8 @@ API_EXPORTED int fp_handle_events(void)
|
|||
*/
|
||||
API_EXPORTED int fp_get_next_timeout(struct timeval *tv)
|
||||
{
|
||||
struct timeval fprint_timeout;
|
||||
struct timeval libusb_timeout;
|
||||
struct timeval fprint_timeout = { 0, 0 };
|
||||
struct timeval libusb_timeout = { 0, 0 };
|
||||
int r_fprint;
|
||||
int r_libusb;
|
||||
|
||||
|
|
Loading…
Reference in a new issue