Commit 0ddd11f8 authored by Bastien Nocera's avatar Bastien Nocera

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) ?                                             \
    ~~~~~~~~~~~ ^
parent 6d47c443
...@@ -373,8 +373,8 @@ API_EXPORTED int fp_handle_events(void) ...@@ -373,8 +373,8 @@ API_EXPORTED int fp_handle_events(void)
*/ */
API_EXPORTED int fp_get_next_timeout(struct timeval *tv) API_EXPORTED int fp_get_next_timeout(struct timeval *tv)
{ {
struct timeval fprint_timeout; struct timeval fprint_timeout = { 0, 0 };
struct timeval libusb_timeout; struct timeval libusb_timeout = { 0, 0 };
int r_fprint; int r_fprint;
int r_libusb; int r_libusb;
......
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