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
@ -267,6 +267,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
/* Wait the packet ready */
|
/* Wait the packet ready */
|
||||||
|
|
||||||
|
memset(&pfd, 0, sizeof(struct pollfd));
|
||||||
pfd.ptr = &priv.file;
|
pfd.ptr = &priv.file;
|
||||||
pfd.events = POLLIN | POLLFILE;
|
pfd.events = POLLIN | POLLFILE;
|
||||||
ret = poll(&pfd, 1, -1);
|
ret = poll(&pfd, 1, -1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user