Make sure the private data is initially NULL
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@1293 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
parent
1ef823b7ad
commit
5678cbefc7
|
@ -165,6 +165,7 @@ static inline int poll_setup(FAR struct pollfd *fds, nfds_t nfds, sem_t *sem)
|
|||
|
||||
fds[i].sem = sem;
|
||||
fds[i].revents = 0;
|
||||
fds[i].private = NULL;
|
||||
|
||||
/* Set up the poll */
|
||||
|
||||
|
|
Loading…
Reference in New Issue