Skip to content

Commit

Permalink
Initialize struct
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzalop committed Mar 8, 2012
1 parent 0491a2c commit 02b1ec7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mono/metadata/tpool-epoll.c
Expand Up @@ -57,6 +57,7 @@ tp_epoll_modify (gpointer event_data, int fd, int operation, int events, gboolea
struct epoll_event evt;
int epoll_op;

memset (&evt, 0, sizeof (evt));
evt.data.fd = fd;
if ((events & MONO_POLLIN) != 0)
evt.events |= EPOLLIN;
Expand Down

0 comments on commit 02b1ec7

Please sign in to comment.