From: Julien Desfossez Date: Tue, 24 May 2011 14:20:44 +0000 (-0400) Subject: Fix pointer dereference X-Git-Tag: v2.0-pre1~127 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=1b686c3f1859c4d5929e234c6e792c2bcab4cc8e;p=lttng-tools.git Fix pointer dereference Signed-off-by: Julien Desfossez --- diff --git a/kconsumerd/kconsumerd.c b/kconsumerd/kconsumerd.c index 96051caaf..4c9c089aa 100644 --- a/kconsumerd/kconsumerd.c +++ b/kconsumerd/kconsumerd.c @@ -581,8 +581,8 @@ static int update_poll_array(struct pollfd **pollfd, DBG("Inside for each"); if (iter->state == ACTIVE_FD) { DBG("Active FD %d", iter->consumerd_fd); - pollfd[i]->fd = iter->consumerd_fd; - pollfd[i]->events = POLLIN | POLLPRI; + (*pollfd)[i].fd = iter->consumerd_fd; + (*pollfd)[i].events = POLLIN | POLLPRI; local_kconsumerd_fd[i] = iter; i++; } else if (iter->state == DELETE_FD) {