mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-30 13:58:03 +03:00
Merge pull request #2854 from Tilka/valgrind
Fix some small stuff found with Valgrind Conflicts: Source/Core/Core/PowerPC/CachedInterpreter.cpp
This commit is contained in:
parent
da832d9671
commit
7950c77332
2 changed files with 3 additions and 2 deletions
|
@ -41,7 +41,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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue