Build fix: undeclared variable in poll compat
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 18 Jul 2019 19:49:28 +0000 (15:49 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 18 Jul 2019 19:55:00 +0000 (15:55 -0400)
No `ipfd` variable exists in the compat_poll_wait function. The
author meant to use `idle_pfd`.

Reported-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/compat/compat-poll.c

index 0220b27854ab776294404c6c80e9a5608bfdeb54..254ce271e71c2f1b9249942e229b5a4b5b7fc82f 100644 (file)
@@ -350,7 +350,7 @@ int compat_poll_wait(struct lttng_poll_event *events, int timeout)
                struct pollfd *idle_pfd = &events->wait.events[idle_pfd_index];
                struct pollfd *current_pfd = &events->wait.events[i];
 
-               if (ipfd->revents != 0) {
+               if (idle_pfd->revents != 0) {
                        swap_pfd = *current_pfd;
                        *current_pfd = *idle_pfd;
                        *idle_pfd = swap_pfd;
This page took 0.025843 seconds and 4 git commands to generate.