From c14910a0de22605b3afce5ea1470fe47908f2b5e Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Sun, 28 Mar 2021 16:10:52 +0300 Subject: [PATCH] interactive-evdev: fix missing initialization Accidentally got lost in 6b65be4. Signed-off-by: Ran Benita --- tools/interactive-evdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/interactive-evdev.c b/tools/interactive-evdev.c index 6b7c8a1..8b0bce0 100644 --- a/tools/interactive-evdev.c +++ b/tools/interactive-evdev.c @@ -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)); -- 2.7.4