From e1ed558543a49ec409a0aeef0d68f9b58c149ed4 Mon Sep 17 00:00:00 2001 From: weizihan Date: Fri, 6 May 2022 16:09:17 +0800 Subject: [PATCH] apps: Fix the bug that didn't initialize structure Signed-off-by: weizihan --- netutils/usrsock_rpmsg/usrsock_rpmsg_client.c | 1 + 1 file changed, 1 insertion(+) diff --git a/netutils/usrsock_rpmsg/usrsock_rpmsg_client.c b/netutils/usrsock_rpmsg/usrsock_rpmsg_client.c index 7d2ff2067..249f575b2 100644 --- a/netutils/usrsock_rpmsg/usrsock_rpmsg_client.c +++ b/netutils/usrsock_rpmsg/usrsock_rpmsg_client.c @@ -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);