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