X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fcompat%2Fpoll.h;h=b019b42c09ff12f81dfc92a12c6872e318f678ea;hb=3d229795de7f38cce87d6d5ea76ef413dbb71f1d;hp=8403880cf3742c61f4c01e281a69f2f5ff9084db;hpb=6d737ce48af40e77ca27cb78348e7f3042eab3ed;p=lttng-tools.git 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; }