diff --git a/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp b/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp index 58f92f29a4..bb29e216cd 100644 --- a/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp +++ b/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp @@ -175,12 +175,12 @@ void PopulateDevices() { // 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. - std::string name = GetName(devnode); auto input = std::make_shared(devnode); if (input->IsInteresting()) { g_controller_interface.AddDevice(std::move(input)); + std::string name = GetName(devnode); s_devnode_name_map.insert(std::pair(devnode, name)); } }