X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fcompat%2Fcompat-poll.c;h=254ce271e71c2f1b9249942e229b5a4b5b7fc82f;hb=8cfbd4f4eb61be673a5f0d8966bc8a56f543a537;hp=0220b27854ab776294404c6c80e9a5608bfdeb54;hpb=22a7367148c238daf481e8e6756cdb76a73fd3a0;p=lttng-tools.git diff --git a/src/common/compat/compat-poll.c b/src/common/compat/compat-poll.c index 0220b2785..254ce271e 100644 --- a/src/common/compat/compat-poll.c +++ b/src/common/compat/compat-poll.c @@ -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;