projects
/
platform
/
upstream
/
libxkbcommon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b65be4
)
interactive-evdev: fix missing initialization
author
Ran Benita
<ran@unusedvar.com>
Sun, 28 Mar 2021 13:10:52 +0000
(16:10 +0300)
committer
Ran Benita
<ran@unusedvar.com>
Sun, 28 Mar 2021 13:11:36 +0000
(16:11 +0300)
Accidentally got lost in
6b65be4
.
Signed-off-by: Ran Benita <ran@unusedvar.com>
tools/interactive-evdev.c
patch
|
blob
|
history
diff --git
a/tools/interactive-evdev.c
b/tools/interactive-evdev.c
index 6b7c8a1f7f47b74df0040b2249d9d7286fa1585e..8b0bce0f05058a50dda3ead62736775d13b01bc8 100644
(file)
--- 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));