interactive-evdev: fix missing initialization
Accidentally got lost in 6b65be4
.
Signed-off-by: Ran Benita <ran@unusedvar.com>
master
parent
6b65be4c4e
commit
c14910a0de
|
@ -313,10 +313,10 @@ read_keyboard(struct keyboard *kbd)
|
|||
static int
|
||||
loop(struct keyboard *kbds)
|
||||
{
|
||||
int ret = -1;
|
||||
struct keyboard *kbd;
|
||||
nfds_t nfds, i;
|
||||
struct pollfd *fds = NULL;
|
||||
int ret;
|
||||
|
||||
for (kbd = kbds, nfds = 0; kbd; kbd = kbd->next, nfds++) {}
|
||||
fds = calloc(nfds, sizeof(*fds));
|
||||
|
|
Loading…
Reference in New Issue