diff --git a/main/features.c b/main/features.c index 3782e3210975d430b0f1f6dc29efd39967268630..68d843bc2e89f84cd37bb5de27bb420591a338c6 100644 --- a/main/features.c +++ b/main/features.c @@ -3785,9 +3785,9 @@ std: for (x = 0; x < AST_MAX_FDS; x++) { /* mark fds for next round */ continue; } *new_pfds = tmp; - new_pfds[*new_nfds]->fd = chan->fds[x]; - new_pfds[*new_nfds]->events = POLLIN | POLLERR; - new_pfds[*new_nfds]->revents = 0; + (*new_pfds)[*new_nfds].fd = chan->fds[x]; + (*new_pfds)[*new_nfds].events = POLLIN | POLLERR; + (*new_pfds)[*new_nfds].revents = 0; (*new_nfds)++; } }