summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/evdev
diff options
context:
space:
mode:
authorTillmann Karras <tilkax@gmail.com>2015-08-15 12:51:34 +0200
committerTillmann Karras <tilkax@gmail.com>2015-08-15 12:51:34 +0200
commitb3ff66dc7a2efd251977e142b224dac69eccd3f9 (patch)
tree419fd5658095fb90713e81210c9533d9aa2dcc41 /Source/Core/InputCommon/ControllerInterface/evdev
parent0b73a9ed2544b84df04325008842e36adf8e110e (diff)
evdev: don't pass null path to the kernel
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/evdev')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp2
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.