Tests: fix: uninitialized values passed to close() on error
[lttng-tools.git] / tests / regression / kernel / select_poll_epoll.c
index 08e7fce0d898df547da42e371dc694f90bea4141..3aa639316f8796de1db89eec66dcd5d802a742e7 100644 (file)
@@ -732,6 +732,9 @@ void epoll_pwait_concurrent_munmap(void)
        struct epoll_event *epoll_event;
        pthread_t writer;
 
+       for (i = 0; i < MAX_FDS; i++) {
+               fds[i] = -1;
+       }
        epollfd = epoll_create(MAX_FDS);
        if (epollfd < 0) {
                perror("[eppoll] create");
This page took 0.024875 seconds and 5 git commands to generate.