diff options
| author | Tillmann Karras <tilkax@gmail.com> | 2015-08-15 12:51:34 +0200 |
|---|---|---|
| committer | Tillmann Karras <tilkax@gmail.com> | 2015-08-15 12:51:34 +0200 |
| commit | b3ff66dc7a2efd251977e142b224dac69eccd3f9 (patch) | |
| tree | 419fd5658095fb90713e81210c9533d9aa2dcc41 /Source/Core/InputCommon/ControllerInterface | |
| parent | 0b73a9ed2544b84df04325008842e36adf8e110e (diff) | |
evdev: don't pass null path to the kernel
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp b/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp index d329189832..3d45244847 100644 --- a/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp +++ b/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp @@ -63,7 +63,7 @@ void Init(std::vector<Core::Device*> &controllerDevices) const char* devnode = udev_device_get_devnode(dev); // We only care about devices which we have read/write access to. - if (access(devnode, W_OK) == 0) + if (devnode && access(devnode, W_OK) == 0) { // Unfortunately udev gives us no way to filter out the non event device interfaces. // So we open it and see if it works with evdev ioctls or not. |
