mirror of
https://github.com/moparisthebest/uinput-mapper
synced 2025-01-10 21:08:03 -05:00
Whoops.
This commit is contained in:
parent
256ef5c8bb
commit
36ad37749c
4
map.c
4
map.c
@ -103,10 +103,10 @@ int main(int argc, char** argv) {
|
||||
}
|
||||
|
||||
|
||||
/* Memset because we are already setting the absmax/absmin */
|
||||
memset(&uidev, '\0', sizeof(struct uinput_user_dev));
|
||||
|
||||
for(j = 0; j < 2; j++) {
|
||||
/* Memset because we are already setting the absmax/absmin */
|
||||
memset(&uidev, '\0', sizeof(struct uinput_user_dev));
|
||||
js[j] = open(UINPUT_PATH, O_WRONLY | O_NONBLOCK);
|
||||
if (js[j] < 0) {
|
||||
perror("open js[j]");
|
||||
|
Loading…
Reference in New Issue
Block a user