summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/evdev
diff options
context:
space:
mode:
authorMarkus Wick <markus@selfnet.de>2015-08-15 20:52:12 +0200
committerMarkus Wick <markus@selfnet.de>2015-08-15 20:52:12 +0200
commite60018abd4124dcd7021e2c66f8134e5d907b74b (patch)
tree6542b2c906e6fbfc73c886709fd02e2260056c25 /Source/Core/InputCommon/ControllerInterface/evdev
parent909ab23df56f6d0da90fdaa29f6f5300cc1cf178 (diff)
parentb0cc02658b43c0d6ba40f36a707709691dcaf408 (diff)
Merge pull request #2854 from Tilka/valgrind
Fix some small stuff found with Valgrind
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.