mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-20 13:08:31 +00:00
apps: Fix the bug that didn't initialize structure
Signed-off-by: weizihan <weizihan@xiaomi.com>
This commit is contained in:
parent
14030f6ba4
commit
e1ed558543
1 changed files with 1 additions and 0 deletions
|
|
@ -267,6 +267,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
/* Wait the packet ready */
|
||||
|
||||
memset(&pfd, 0, sizeof(struct pollfd));
|
||||
pfd.ptr = &priv.file;
|
||||
pfd.events = POLLIN | POLLFILE;
|
||||
ret = poll(&pfd, 1, -1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue