apps: Fix the bug that didn't initialize structure

Signed-off-by: weizihan <weizihan@xiaomi.com>
This commit is contained in:
weizihan 2022-05-06 16:09:17 +08:00 committed by Xiang Xiao
parent 14030f6ba4
commit e1ed558543

View File

@ -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);