Skip to content

Commit

Permalink
Merge pull request #58 from mheranco/master
Browse files Browse the repository at this point in the history
poll does not set errno, when it returns 0
  • Loading branch information
embeddedt authored Jul 11, 2019
2 parents 0022723 + 2f787e8 commit 73834b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indev/libinput.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ bool libinput_read(lv_indev_data_t * data)

rc = poll(fds, nfds, timeout);
switch (rc){
case 0:
case -1:
perror(NULL);
case 0:
goto report_most_recent_state;
default:
break;
Expand Down

0 comments on commit 73834b7

Please sign in to comment.