Skip to content

Commit

Permalink
bugfix can't replicate but helps others without effecting still others!
Browse files Browse the repository at this point in the history
thanks mossman
  • Loading branch information
chris authored and chris committed Sep 28, 2012
1 parent 6a29677 commit cf3918b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/input.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -246,8 +246,8 @@ bool *getKeys()
int n; int n;


n = scandir ("/dev/input/by-path/", &eps, __dfilter, __dsort); n = scandir ("/dev/input/by-path/", &eps, __dfilter, __dsort);
if (n >= 0) // if (n >= 0)
{ if(n >= 0 && eps != 0 && eps[0] != 0) {
// only check 1st usb keyboard.... // only check 1st usb keyboard....
char fn[256]; char fn[256];
sprintf(fn,"/dev/input/by-path/%s\0",eps[0]->d_name); sprintf(fn,"/dev/input/by-path/%s\0",eps[0]->d_name);
Expand Down

0 comments on commit cf3918b

Please sign in to comment.