Navigation Menu

Skip to content

Commit

Permalink
stress-resources: fix missing guard on fd_ev
Browse files Browse the repository at this point in the history
Signed-off-by: Colin Ian King <colin.king@canonical.com>
  • Loading branch information
Colin Ian King committed Jun 11, 2019
1 parent 554bd36 commit 45be5ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stress-resources.c
Expand Up @@ -178,7 +178,9 @@ static void NORETURN waste_resources(
info[i].m_mmap = MAP_FAILED;
info[i].pipe_ret = -1;
info[i].fd_open = -1;
#if defined(HAVE_EVENTFD)
info[i].fd_ev = -1;
#endif
#if defined(HAVE_MEMFD_CREATE)
info[i].fd_memfd = -1;
#endif
Expand Down

0 comments on commit 45be5ee

Please sign in to comment.