X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fcompat%2Fpoll.h;h=b019b42c09ff12f81dfc92a12c6872e318f678ea;hp=8403880cf3742c61f4c01e281a69f2f5ff9084db;hb=c5854b1c8a413ec3803df8a9f15369c3ec876977;hpb=38107a7fa8a0ca62d0703dd66606f2465024a79a diff --git a/src/common/compat/poll.h b/src/common/compat/poll.h index 8403880cf..b019b42c0 100644 --- a/src/common/compat/poll.h +++ b/src/common/compat/poll.h @@ -164,7 +164,7 @@ static inline void lttng_poll_reset(struct lttng_poll_event *events) */ static inline void lttng_poll_init(struct lttng_poll_event *events) { - lttng_poll_reset(events); + memset(events, 0, sizeof(struct lttng_poll_event)); /* Set fd to -1 so if clean before created, we don't close 0. */ events->epfd = -1; }