From f611240fba714b676e7a676cbdbbca3e32c5c14d Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Mon, 23 Aug 2021 15:29:28 +0200 Subject: [PATCH] vpcd: Initialize variables This caused OpenSC CI failing as described in https://github.com/OpenSC/OpenSC/issues/2390 Authored by Doug Engert --- virtualsmartcard/src/vpcd/vpcd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/virtualsmartcard/src/vpcd/vpcd.c b/virtualsmartcard/src/vpcd/vpcd.c index 8d3be0d..57fd55b 100644 --- a/virtualsmartcard/src/vpcd/vpcd.c +++ b/virtualsmartcard/src/vpcd/vpcd.c @@ -197,6 +197,8 @@ SOCKET waitforclient(SOCKET server, long secs, long usecs) struct pollfd pfd; pfd.fd = server; + pfd.events = POLLIN; + pfd.revents = 0; timeout = (secs * 1000000 + usecs / 1000);