Make sure the private data is initially NULL
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1293 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
a8ddf0cfea
commit
14d2342d9e
@ -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
Block a user