Permalink
Browse files

bugfix can't replicate but helps others without effecting still others!

thanks mossman
  • Loading branch information...
chris chris
chris authored and chris committed Sep 28, 2012
1 parent 6a29677 commit cf3918b9e241c2aa81134834850d8c3160f31c1d
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/input.c
View
@@ -246,8 +246,8 @@ bool *getKeys()
int n;
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....
char fn[256];
sprintf(fn,"/dev/input/by-path/%s\0",eps[0]->d_name);

0 comments on commit cf3918b

Please sign in to comment.